Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14154 > unrolled thread
| Started by | Paulo Marcel Coelho Aragão <marcelpaulo@gmail.com> |
|---|---|
| First post | 2018-05-27 22:35 -0300 |
| Last post | 2018-05-27 22:35 -0300 |
| 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: extglob patterns not expanded in -c command-strings Paulo Marcel Coelho Aragão <marcelpaulo@gmail.com> - 2018-05-27 22:35 -0300
| From | Paulo Marcel Coelho Aragão <marcelpaulo@gmail.com> |
|---|---|
| Date | 2018-05-27 22:35 -0300 |
| Subject | Re: extglob patterns not expanded in -c command-strings |
| Message-ID | <mailman.602.1527471353.1292.bug-bash@gnu.org> |
> bash -c 'shopt -s extglob; echo @(foo*|bar*)' I've just discovered that this works as expected: bash -O extglob -c 'echo @(foo*|bar*)' However, the puzzle lingers on, since running this: bash -c 'shopt -s extglob; shopt extglob' results in: extglob on which indicates that the original command should have worked as expected, recognizing the extglob pattern. There's still a mystery to unveal here.
Back to top | Article view | gnu.bash.bug
csiph-web