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


Groups > gnu.bash.bug > #12263

Re: Weird shopt behavior

From Eduardo A. Bustamante López <dualbus@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Weird shopt behavior
Date 2016-01-21 00:16 -0600
Message-ID <mailman.2684.1453357131.843.bug-bash@gnu.org> (permalink)
References <56A02125.2040904@gmail.com>

Show all headers | View raw


Hey,

We got your report three times. Try to be more patient ;)

This is not a bug. When you use shopt -s extglob, you change how bash parses
the input script. But it has some restrictions:

- You can't enable extglob and use extglob syntax in the same line
- You can't enable extglob in a function and use extglob syntax in the same
line

The recommendation is to do what you did: enable it at the beginning of your
script.

So, not a bug. And don't expect a fix. That's just how it works :-)

-- 
Eduardo Bustamante
https://dualbus.me/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Weird shopt behavior Eduardo A. Bustamante López <dualbus@gmail.com> - 2016-01-21 00:16 -0600

csiph-web