I'm compiling embedded environment, and there is a Makefile in iproute2 an tc that have this line. I'm using bash as a shell, also the other comps I have used. I have read the echo entry in man bash, but didn't find nothing of importance. What I did found is that my echo version don't interpret any flags with --. echo --version --version I'm running Ubuntu 7.10
Kfir On Nov 20, 2007 1:22 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > > > > --- Amos Shapira <[EMAIL PROTECTED]> wrote: > > > On 20/11/2007, Kfir Lavi <[EMAIL PROTECTED]> > > wrote: > > > Hi, > > > I have a problem running echo inside Makefile. > > > Here is the Makefile: > > > all: > > > @echo "string" > > > @echo -e -n "string" > You could try to use printf instead of echo. > > Valery > > > > > > > > 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? > > > > It mostly depends on which shell is used. "echo" is > > a built-in command > > in many shells as well as there are stand-alone > > implementations > > (usually under /bin). And many of the different > > versions use different > > options. > > Do you use autoconf or do you write the Makefile > > directly? I'm pretty > > sure autoconf can interrogate the system and find > > the right > > combination of echo and flags for your needs (but I > > never got around > > to use it properly). > > > > --Amos > > > > > ================================================================= > > 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] > > > > > > > > > > ____________________________________________________________________________________ > Be a better sports nut! Let your teams follow you > with Yahoo Mobile. Try it now. > http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ > > ================================================================= > 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] > >