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


Groups > gnu.bash.bug > #14154

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

From Paulo Marcel Coelho Aragão <marcelpaulo@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: extglob patterns not expanded in -c command-strings
Date 2018-05-27 22:35 -0300
Message-ID <mailman.602.1527471353.1292.bug-bash@gnu.org> (permalink)
References <5b0b4173.1c69fb81.6c66f.f11f@mx.google.com>

Show all headers | View raw


> 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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web