If I name a function or script with dash -
instead of underline _
between words, would that be bad? For example, function duplicate-me()
or duplicate-me.sh
.
In bash, a variable name can contains underline but no dash. If I name functions and scripts using dash instead of underline, then bash will never intend to interpret such a name as a variable, and I can expect bash to give error message if I misuse such a name as a variable.
Thanks.
Shift
to be pressed. – choroba Nov 17 '18 at 23:13