2 ms·
from one of the answers: > set -f And why does `set` use a flag with no argument after it? It's simple, just follow the rules: Single dash for single letter
by jancsika 5y ago
from one of the answers:
> set -f
And why does `set` use a flag with no argument after it? It's simple, just follow the rules:
Single dash for single letter flags
Double dash for full word flags
No dash for flag arguments
No dash for some non-flag arguments from ancient commands
Sometimes the dash is a "minus" prefix and has a matching "plus" prefix for a non-flag argument
Gang them all together sometimes
Git uses lots of subcommands and flags, often in surprising combinations
Not always can you gang together single letter flags
? Can you always gang together single letter flags? I'm not really sure TBH
Never gang together full word flags.
The short pneumonic "SDNNSGGN?N" is instructive here. The trouble you'll have remembering that pneumonic will remind you how much of a pain bash is.