On Sun, 25 Dec 2011 04:16:41 +0000, T o n g wrote: > BTW, the reason that I gave up 'echo -e' was that it started to > mysteriously output that "-e " in front of the messages I wanted to show > in my /bin/sh scripts. I still haven't figure out why yet.
Oh, I forgot, I've already figured it out -- Now /bin/sh points to dash (instead of bash previously): $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 2010-10-15 19:05 /bin/sh -> dash /bin/sh set -- command -opt param params... echo='echo -e' $ $echo "\n\$ $@\n" -e $ command -opt param params... On NetBSD, it's the contrary: $ ls -l /bin/sh -r-xr-xr-x 1 root wheel 168089 Nov 6 2010 /bin/sh /bin/sh set -- command -opt param params... echo='echo -e' $ $echo ".\n\$ $@\n" . $ command -opt param params... echo='/bin/echo -e' $ $echo ".\n\$ $@\n" -e .\n$ command -opt param params...\n Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jd6914$urv$2...@dough.gmane.org