bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Libvir] make syntax-check fails with bzr checkouts


From: Eric Blake
Subject: Re: [Libvir] make syntax-check fails with bzr checkouts
Date: Wed, 30 Apr 2008 06:05:49 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 4/30/2008 4:19 AM:
|> -      $(find ${*-*} -name Entries -print) /dev/null;
|> +      $(find ${*:-*} -name Entries -print) /dev/null;
|
| Thanks for reporting that.
| Note though that POSIX appears to require the behavior that bash exhibits,
| so calling this a bashism doesn't seem right.  However, in the spec,
| just beneath the part that talks about ${parameter-word} there are escape
| clauses for e.g., ${#parameter} and ${parameter%word} etc.:
|
|   If parameter is '*' or '@', the result of the expansion is unspecified.
|
| but there is no such exemption for the ${parameter-word} syntax.

I think POSIX is ambiguous here.  For the ${a:-b} (and ${a-b}) form, it
only states that if the parameter is null/unset, use the substitute; but
it can be argued that * and @ are _always_ set.  Maybe it's worth asking
the Austin group.  But Jim's workaround looked better anyway.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgYYJ0ACgkQ84KuGfSFAYDEUwCfVbpDefbEG7jDvE1xb9QN3YQF
d78AoK0uSOptJ23xiRSAmtFEXyl4IqhY
=WMpq
-----END PGP SIGNATURE-----




reply via email to

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