Echo

From NovaOrdis Knowledge Base
Revision as of 03:31, 4 May 2021 by Ovidiu (talk | contribs) (Created page with "=Internal= * Linux =Idiosyncrasies= <syntaxhighlight lang='bash'> echo "$@" </syntaxhighlight> will not behave as expected if the first argument of the c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Idiosyncrasies

echo "$@"

will not behave as expected if the first argument of the calling script is -n. To avoid this situation, use:

echo -- "$@"