make SHELL=/bin/bash works. But, my shell seems to be bash. echo $SHELL /bin/bash
So what is the problem? Do I really run dash instead of bash, but it shows bash? Thanks, Kfir On Nov 21, 2007 8:26 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > --- Dotan Shavit <[EMAIL PROTECTED]> wrote: > > > On Tuesday 20 November 2007, you wrote: > > > Hi, > > > I have a problem running echo inside Makefile. > > > Here is the Makefile: > > > all: > > > @echo "string" > > > @echo -e -n "string" > > > > > > The output is: > > > string > > > -e -n string > > > > > > The problem is the second @echo command. It prints > > '-e -n' instead of > > > interpreting those options. > > > I have tested it on other comps and it works fine, > > so its an environment > > > problem in my comp. > > > What var or file determine this behavior? > > The difference is your /bin/sh > > In Ubuntu it's linked to /bin/dash which echo > > (builtin command) accepts > > only -n > > > > linking /bin/sh to /bin/bash will bypass this > > behavior in *your* environment. > make SHELL=/bin/bash > > should do the trick too. > > Valery. > > > A better solution will be to force make calling the > > echo you want: > > > > ECHO=/bin/echo > > > > all: > > @$(ECHO) -n -e "aaa" > > > > > > # > > > > > Thanks, > > > Kfir > > > > > > > > > ================================================================= > > To unsubscribe, send mail to > > [EMAIL PROTECTED] with > > the word "unsubscribe" in the message body, e.g., > > run the command > > echo unsubscribe | mail > > [EMAIL PROTECTED] > > > > > > > > > > ____________________________________________________________________________________ > Get easy, one-click access to your favorites. > Make Yahoo! your homepage. > http://www.yahoo.com/r/hs >