bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird shopt behavior


From: Eduardo A . Bustamante López
Subject: Re: Weird shopt behavior
Date: Thu, 21 Jan 2016 00:16:48 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]