I'm not finding this answer, and it's got to be obvious, but I still need the help.
In an attempt to create a command line option, I was using the various flags and echoing them to verify they were right.
This example, however, continued to fail:
declare foo="-n 40 "
echo $foo
When run it just shows '40'.
If I add another dash in front of -n
, it prints --n
A backslash/escape? It prints that. In short, I can't figure out what the heck is going on to get that simple text to display properly. I've even tried using the --
(stop processing) to no avail.
So please, if possible, point me to where in the documentation and explain why it's interpreting that -n
so that I can learn to not do it, and work around it, in the future.
Thank you.