3 ms·
For completeness, the other option is: CMD="some command" # Some comment CMD="$CMD --verbose --complex-flag=..." # Other stuff CMD="$CMD --
by remram 4y ago
For completeness, the other option is:
CMD="some command"
# Some comment
CMD="$CMD --verbose --complex-flag=..."
# Other stuff
CMD="$CMD --lol=\"no thanks\""
eval $CMD
- Groxx 4y agoyeah, I just don't like dealing with the possibly-multiple-levels of escaping that sometimes requires :\ there are ways to deal with that of course, but it's kinda unavoidably more complex.