Re: echo inside Makefile

2007-11-24 Thread Oleg Goldshmidt
Oron Peled <[EMAIL PROTECTED]> writes: > The correctness of you assertion greatly depends on which "those" you mean. > Sunos (which was the dominant Unix throughout the 80's and the beginning > of the 90's) had /bin/csh as default. BTW, this explains how some parts > in the academic world got the

Re: echo inside Makefile

2007-11-23 Thread Oron Peled
On Friday, 23 בNovember 2007, Oleg Goldshmidt wrote: > "Amos Shapira" <[EMAIL PROTECTED]> writes: > > - properly-written shell scripts shouldn't depend on their > > environment Hmmm... I hope you don't advocate massive overriding of environment variables in shell scripts: PATH, HOME, TERM and zill

Re: echo inside Makefile

2007-11-22 Thread Oleg Goldshmidt
"Amos Shapira" <[EMAIL PROTECTED]> writes: > On 22/11/2007, Oleg Goldshmidt <[EMAIL PROTECTED]> wrote: > >> what not that expect echo options, regular expressions, and other >> stuff ash/dash does not provide. Yes, I realize that it is technically >> careless. That's no excuse for keeping the defa

Re: echo inside Makefile

2007-11-22 Thread Amos Shapira
On 22/11/2007, Oleg Goldshmidt <[EMAIL PROTECTED]> wrote: > If you don't want to change your installation, put > > SHELL=/bin/bash > > at the top of your Makefile. This is probably a good idea for > portability if you don't trust the user's $SHELL to have all the > needed features. 1. As far as I

Re: echo inside Makefile

2007-11-22 Thread Kfir Lavi
On Nov 22, 2007 6:23 PM, Oleg Goldshmidt <[EMAIL PROTECTED]> wrote: > "Kfir Lavi" <[EMAIL PROTECTED]> writes: > > > Yep, > > The thing is that make uses /bin/sh and /bin/sh -> dash. > > Changing the link /bin/sh to point to bash solved the problem. > > If you don't want to change your installation

Re: echo inside Makefile

2007-11-22 Thread Oleg Goldshmidt
"Kfir Lavi" <[EMAIL PROTECTED]> writes: > Yep, > The thing is that make uses /bin/sh and /bin/sh -> dash. > Changing the link /bin/sh to point to bash solved the problem. If you don't want to change your installation, put SHELL=/bin/bash at the top of your Makefile. This is probably a good idea

Re: echo inside Makefile

2007-11-22 Thread Ilya Konstantinov
Do note that this symlink is a result of a divert made by dash's installation. The *right* solution is to either uninstall the 'dash' package or at least to remove the divert (using the dpkg-divert utility). On Nov 22, 2007 9:53 AM, Kfir Lavi <[EMAIL PROTECTED]> wrote: > Yep, > The thing is that

Re: echo inside Makefile

2007-11-21 Thread Kfir Lavi
t; 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, > > > > >

Re: echo inside Makefile

2007-11-21 Thread Dotan Shavit
> 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 in

Re: echo inside Makefile

2007-11-21 Thread Kfir Lavi
OTECTED]> 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 "s

Re: echo inside Makefile

2007-11-21 Thread Dotan Shavit
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 i

Re: echo inside Makefile

2007-11-21 Thread Kfir Lavi
On Nov 21, 2007 1:33 AM, Amos Shapira <[EMAIL PROTECTED]> wrote: > On 20/11/2007, Kfir Lavi <[EMAIL PROTECTED]> wrote: > > Ok, > > make -d don't show much. > > I have attached the two files: Makefile and make.log > > That's weird - your make.log says: > > Must remake target `all'. > -e -n aaa > >

Re: echo inside Makefile

2007-11-21 Thread Kfir Lavi
AIL PROTECTED]> writes: > > > 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

Re: echo inside Makefile

2007-11-20 Thread Amos Shapira
On 20/11/2007, Kfir Lavi <[EMAIL PROTECTED]> wrote: > Ok, > make -d don't show much. > I have attached the two files: Makefile and make.log That's weird - your make.log says: Must remake target `all'. -e -n aaa (i.e. "echo" is missing"). But running "make -d -n" on my machine (Debian Etch, make

Re: echo inside Makefile

2007-11-20 Thread Kfir Lavi
Ok, make -d don't show much. I have attached the two files: Makefile and make.log On Nov 20, 2007 2:28 PM, Ilya Konstantinov <[EMAIL PROTECTED]> wrote: > You can run 'make -d' to get more insight into what Make does. > There aren't supposed to be any internal Make commands. There are internal > f

Re: echo inside Makefile

2007-11-20 Thread Oleg Goldshmidt
"Kfir Lavi" <[EMAIL PROTECTED]> writes: > 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

Re: echo inside Makefile

2007-11-20 Thread Ilya Konstantinov
You can run 'make -d' to get more insight into what Make does. There aren't supposed to be any internal Make commands. There are internal functions, but the syntax for calling them is $(function ...), e.g. $(info foobar) On Nov 20, 2007 2:16 PM, Kfir Lavi <[EMAIL PROTECTED]> wrote: > Does make us

Re: echo inside Makefile

2007-11-20 Thread Kfir Lavi
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, 2

Re: echo inside Makefile

2007-11-20 Thread Kfir Lavi
mbedded 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: > > > > > > > > > > > >

Re: echo inside Makefile

2007-11-20 Thread Valery Reznic
ay, 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

Re: echo inside Makefile

2007-11-20 Thread Kfir Lavi
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 pri

Re: echo inside Makefile

2007-11-20 Thread Valery Reznic
--- 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" > >

Re: echo inside Makefile

2007-11-20 Thread Amos Shapira
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" > > The output is: > string > -e -n string >

echo inside Makefile

2007-11-20 Thread Kfir Lavi
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