Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15313 > unrolled thread
| Started by | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| First post | 2019-08-08 10:38 -0400 |
| Last post | 2019-08-08 10:38 -0400 |
| 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 Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-08 10:38 -0400
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2019-08-08 10:38 -0400 |
| Subject | Re: Filename expansion bug |
| Message-ID | <mailman.1067.1565275160.1985.bug-bash@gnu.org> |
On Thu, Aug 08, 2019 at 04:33:16PM +0200, Janek Mi wrote: > For some time in my scripts I was using something like this: > > ```shell > #!/usr/bin/env bash > 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\(\) This looks just like another recent thread. See Chet's response here: https://lists.gnu.org/archive/html/bug-bash/2019-08/msg00015.html 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: https://mywiki.wooledge.org/BashFAQ/050
Back to top | Article view | gnu.bash.bug
csiph-web