Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15314 > unrolled thread
| Started by | Stephane Chazelas <stephane.chazelas@gmail.com> |
|---|---|
| First post | 2019-08-08 16:07 +0100 |
| Last post | 2019-08-08 16:07 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Filename expansion bug Stephane Chazelas <stephane.chazelas@gmail.com> - 2019-08-08 16:07 +0100
| From | Stephane Chazelas <stephane.chazelas@gmail.com> |
|---|---|
| Date | 2019-08-08 16:07 +0100 |
| Subject | Re: Filename expansion bug |
| Message-ID | <mailman.1068.1565276870.1985.bug-bash@gnu.org> |
2019-08-08 10:38:48 -0400, Greg Wooledge: [...] > > shopt -s failglob > > command="echo xyz\(\)" > > $command > > ``` > > > > And it was working fine. But somewhere between bash version 4 and 5 I > > realized it generates an error: > > no match: xyz\(\) [...] > And my personal response for this variant of the issue: stop putting > shell commands in string variables and then trying to run them with > unquoted parameter expansion. See: [...] While I'd agree in this case, note that the austin-group thread was mentionning a very similar case: https://www.mail-archive.com/austin-group-l@opengroup.org/msg04213.html That was in autoconf's configure script (including the one shipped with bash) that is /broken/ by that change in 5.0: as_echo='printf %s\n' $as_echo x now runs: printf '%sn' x if there's a file called %sn in the current directory and printf '%s\n' x otherwise (and would cause an error with failglob and run printf x with nullglob). In that case, it's not because the autoconf authors don't know any better but because at that point in the script where $ac_echo is defined, they're trying to support ancient shells that don't have function support. -- Stephane
Back to top | Article view | gnu.bash.bug
csiph-web