don't use echo -e

Bug #242766 reported by River Tarnell
2
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.

Revision history for this message
Ben Beasley (ben-musicinmybrain) wrote :

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.

Revision history for this message
reacocard (reacocard) wrote :

fixed in trunk - we now use printf instead of echo, since it appears to be much more cross-platform compatible.

Changed in exaile:
milestone: none → 0.3.0
status: New → Fix Committed
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.