From: Andrei R. <ar...@ya...> - 2006-12-08 07:19:17
|
Here's what I got: root@ubuntu2 /tmp # echo $BASH_VERSION 3.1.17(1)-release root@ubuntu2 /tmp # type -a echo echo is a shell builtin echo is /bin/echo root@ubuntu2 /tmp # echo -e "a\nb\nc" a b c root@ubuntu2 /tmp # /bin/echo -e "a\nb\nc" a b c root@ubuntu2 /tmp # cat Makefile all: echo "SHELL = $(SHELL)" > out.txt echo "BASH_VERSION = $(BASH_VERSION)" >> out.txt echo ===== >> out.txt type -a echo >> out.txt echo ===== >> out.txt echo -e "a\nb\nc" >> out.txt echo ===== >> out.txt (grep -q cfio out.txt || \ echo -e 'alias mwlan0 cfio\ninstall cfio /sbin/modprobe \ --ignore-install cfio && /sbin/modprobe mcf25\n' >> out.txt) echo ===== >> out.txt cat out.txt root@ubuntu2 /tmp # make echo "SHELL = /bin/sh" > out.txt echo "BASH_VERSION = " >> out.txt echo ===== >> out.txt type -a echo >> out.txt make: *** [all] Error 127 root@ubuntu2 /tmp # cat out.txt SHELL = /bin/sh BASH_VERSION = ===== -a: not found echo is a shell builtin root@ubuntu2 /tmp # any ideas ? --- Dave Hylands <dhy...@gm...> wrote: > Hi Andrei (and Claudio), > > On 12/7/06, Andrei Rylin <ar...@ya...> wrote: > > I also have ubuntu 6.10 and see this stray "-e". > > I just delete it but would be nice to understand > > root of the problem. > > So try a few experiments: > > >From your bash shell: > > 1323 >echo $BASH_VERSION > 3.1.7(1)-release > > 1324 >type -a echo > echo is a shell builtin > echo is /bin/echo > > 1325 >echo -e "a\nb\nc" > a > b > c > > 1326 >/bin/echo -e "a\nb\nc" > a > b > c > > Create a directory containing the attached Makefile > and cd into that > directory and type make. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > all: > echo "SHELL = $(SHELL)" > out.txt > echo "BASH_VERSION = $(BASH_VERSION)" >> out.txt > echo ===== >> out.txt > type -a echo >> out.txt > echo ===== >> out.txt > echo -e "a\nb\nc" >> out.txt > echo ===== >> out.txt > (grep -q cfio out.txt || \ > echo -e 'alias mwlan0 cfio\ninstall cfio > /sbin/modprobe --ignore-install cfio && > /sbin/modprobe mcf25\n' >> out.txt) > echo ===== >> out.txt > cat out.txt > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |