bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Avoid unportable nested double-quotes and backquotes.


From: Ralf Wildenhues
Subject: Re: Avoid unportable nested double-quotes and backquotes.
Date: Sun, 23 May 2010 13:54:22 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

Hi Bruno,

* Bruno Haible wrote on Sun, May 23, 2010 at 01:37:41PM CEST:
> > noticed this small shell unportability in gnulib coming from gettext.
> > ...
> >          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
> > -        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
> > +        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
> 
> There is no unportability here. I tested these statements
[...]
> In summary, I did find a shell that does not understand "`...\"...\"...`"
> but I did not find a shell that does not understand "`..."..."...`". That
> paragraph in autoconf.texi dates back to 2000-05-19 12:17:29. It may have
> referred to shells that were in common use between 1995 and 2000 and have
> disappeared by now.

Thanks for testing.  I'm fairly sure I've come across a shell that
doesn't like this in the last few years, but don't remember which, and
it might have been on an old system.  ATM some of my test systems aren't
reachable though, so I can't confirm this.

Cheers,
Ralf



reply via email to

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