Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14154 > unrolled thread

Re: extglob patterns not expanded in -c command-strings

Started byPaulo Marcel Coelho Aragão <marcelpaulo@gmail.com>
First post2018-05-27 22:35 -0300
Last post2018-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.


Contents

  Re: extglob patterns not expanded in -c command-strings Paulo Marcel Coelho Aragão <marcelpaulo@gmail.com> - 2018-05-27 22:35 -0300

#14154 — Re: extglob patterns not expanded in -c command-strings

FromPaulo Marcel Coelho Aragão <marcelpaulo@gmail.com>
Date2018-05-27 22:35 -0300
SubjectRe: 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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web