Does make uses internal echo command? I ask this, because bash echo interprets -e -n and also /bin/echo. But when running echo inside the Makefile it will not interpret -e -n.
On Nov 20, 2007 1:52 PM, Valery Reznic <[EMAIL PROTECTED]> wrote: > > --- Kfir Lavi <[EMAIL PROTECTED]> wrote: > > > 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 > May be your bash for some reason running not it's > embedded echo, but external one . > > Anyway, what about printf, is it work for you ? > > Valery. > > > > > 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] > > > > > > > > > > > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs >
