Re:Bash code generator for command-line arguments
by skinner927 on Friday October 02, 2020 @11:20AM
(#24663540)
In my experience this is the simplest way. The only mod Iād suggest is to put positional arguments into an array so you can put flags anywhere but this will work fine for 99% of scripts.
[ Parent
| on HN ]
Re:Bash code generator for command-line arguments
by bxparks on Friday October 02, 2020 @11:49AM
(#24663841)
The problem I have with bash arrays is that I use them so infrequently that I cannot remember its syntax. I have to look up the manual each time, and it's difficult to find things in the bash man pages.