not all UNIX echo commands support -n

FreeBSD and OSX's does not, for example, and the shell should just treat
the '\n' as white space in the command line.
This commit is contained in:
Hans-Christoph Steiner 2016-03-14 11:33:07 +01:00
parent 7039d16046
commit aa0ea46465

View file

@ -75,7 +75,7 @@ find_command() {
for suff in "3" "-python3" ""; do for suff in "3" "-python3" ""; do
cmd=${1}${suff} cmd=${1}${suff}
if cmd_exists $cmd; then if cmd_exists $cmd; then
echo -n $cmd echo $cmd
return 0 return 0
fi fi
done done