[Bash-completion-devel] [bash-completion-Bugs][312163] Replace uses of echo with printf or redirection
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Tue Dec 15 21:57:18 UTC 2009
Bugs item #312163, was opened at 2009-12-15 23:57 by Ville Skyttä
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312163&group_id=100114
Status: Open
Priority: 3
Submitted By: Ville Skyttä (scop-guest)
Assigned to: Nobody (None)
Summary: Replace uses of echo with printf or redirection
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number: 312143
Initial Comment:
Copied from #312143:
We'd better never use echo, but `printf' (or redirection) instead
because if an argument to echo happens to be -e or -n, it is
interpreted wrongly as an option:
$ a=-n
$ echo "$a" # Error: Nothing is output
$ printf "%s" "$a" # Ok: -n gets output
-n$
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312163&group_id=100114
More information about the Bash-completion-devel
mailing list