don't use echo -e
Bug #242766 reported by
River Tarnell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
the <prefix>/bin/exaile script is generated using 'echo -e ...'. Solaris /bin/sh's echo doesn't support -e, which means the file is generated as "-e #!/bin/sh". this doesn't work so well.
please remove the -e; i tested several shells (zsh, bash, Solaris sh, Solaris XPG4 sh, ksh88, ksh93) and all understood the \n escape without -e.
Changed in exaile: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Ubuntu 9.04, in bash:
user@host:~$ echo "foo\nbar"
foonbar
user@host:~$ echo -e "foo\nbar"
foo
bar
That's at least one popular shell that doesn't default to enabling backslash escapes.