News for hackers. Stuff that matters.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by latexr on Tuesday June 20, 2023 @06:18AM (#36401949)
> I also almost always prefer the self-documenting long-option to single-letter switches when writing shell scripts. Those single-letter options are to save you typing on the command-line. There's no reason to use them in a script.

Same applies to Stack Overflow answers and blog posts. If you’re teaching someone how to do something, always use the long flags so they can better understand it as they read. If you don’t know what the long option is, take the two seconds to check the manual.

There are no comments on this comment yet.