When working on the command line, it’s perfectly fine to use short-format flags. For example:
$ ls -al
This is memorable, easy to type, and helps you focus on accomplishing the task at hand.
However, when writing shell scripts that will be used over and over, it’s tempting to write in the same, comfortable short-flag style. However, compare the following:Continue reading “Best Practice: Use Long-Format Flags in Shell Scripts”