[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _AC_CACHE_DUMP simplified
From: |
Ralf Wildenhues |
Subject: |
Re: _AC_CACHE_DUMP simplified |
Date: |
Tue, 21 Mar 2006 07:07:25 +0100 |
User-agent: |
Mutt/1.5.9i |
* Eric Blake wrote on Tue, Mar 21, 2006 at 01:05:52AM CET:
> > what would you say about this simplification of _AC_CACHE_DUMP?
>
> + case `(ac_space=' '; set | grep ^ac_space) 2>&1` in
>
> Don't you have to quote leading ^ in portable shell? As in
>
> case `(ac_space=' '; set | grep '^ac_space') 2>&1` in
Yes, you do.
$ config.guess
sparc-sun-solaris2.10
$ /bin/sh -c 'echo ^a'
/bin/sh: a: not found
> I searched autoconf.texi, but did not find a definitive answer to
> my question (it did point out that ^ is not portable in filenames,
> and that leading ^ in expr regex is not portable, but did not
> really mention whether bare ^ in shells should be avoided), so
> maybe I'm just propagating an urban legend.
Nope.
Cheers,
Ralf