|
|
|
|
|
by snatchpiesinger
631 days ago
|
|
Cool! My personal preference is Knuth-style line-breaks on binary operators and pipes, which means breaking before the operator/pipe symbol. foo -a -b \
| bar -c -d -e \
| baz -e -f
instead of foo -a -b | \
bar -c -d -e | \
baz -e -f
This doesn't seem to be an option, but could be easy to implement. |
|
https://unix.stackexchange.com/questions/253518/where-are-ba...
When writing bash, if I have a command with many switches, I use an array to avoid backslashes and make the intent clearer:
I also insist on long-form options in shell scripts since they are much more self-documenting as compared to single-letter options.