libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Revenge of the $ECHO. Kill most uses of Xsed.


From: Ralf Wildenhues
Subject: Re: Revenge of the $ECHO. Kill most uses of Xsed.
Date: Wed, 19 Nov 2008 07:18:31 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

* Eric Blake wrote on Wed, Nov 19, 2008 at 06:12:27AM CET:
> >>> -                   RM="$ECHO $RM"
> >>> +                   RM="echo $RM"
> >> Are all of these safe, considering mingw might have \ in an absolute
> >> pathname to these tools?
> > 
> > No, and I'm glad you ask about this.  The point here is that there is
> > more than one argument following, and I didn't see an easy way to escape
> > them properly, so I figured take the less likely of the bugs, as
> > RM="$ECHO rm -f" is quite certain to do the wrong thing.  Suggestions?
> 
> Well, on mingw native, the default sh has an echo that doesn't eat \.  But
> that doesn't help if you are doing a Solaris-mingw cross.  I'm also
> stumped on thinking of any better alternative, though.

func_echo_all ()
{
  $ECHO "$*"
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]