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. 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]