3 ms·
You can implement arrays for POSIX shell in POSIX shell by changing the input separator to new line, and writing some simple helper functions to search for it.
by BirAdam 4y ago
You can implement arrays for POSIX shell in POSIX shell by changing the input separator to new line, and writing some simple helper functions to search for it. It’s not the prettiest solution but works for many use cases of arrays in shell scripts.
- chasil 4y agoThere are much more practical ways to iterate over a list than that in dash.