help-bash
[Top][All Lists]
Advanced

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

Re: extglob and ()/{}


From: Daniel Mills
Subject: Re: extglob and ()/{}
Date: Tue, 6 Apr 2021 10:59:20 -0400

On Tue, Apr 6, 2021 at 10:56 AM Peng Yu <pengyu.ut@gmail.com> wrote:

>
> So the bottomline is not to use `shopt -s extglob` in () and {}
> blocks? If one wants to use `shopt -s extglob`, it must be outside of
> () and {} blocks?
>
>
> It can be used in those blocks, but it must be declared outside of them.
And you cannot say use a subshell to make the option revert afterwards.


reply via email to

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