help-bash
[Top][All Lists]
Advanced

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

Re: extglob and ()/{}


From: Peng Yu
Subject: Re: extglob and ()/{}
Date: Tue, 6 Apr 2021 10:04:06 -0500

On Tue, Apr 6, 2021 at 9:59 AM Daniel Mills <danielmills1@gmail.com> wrote:
>
>
>
> 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,

By `shopt -s extglob`, I mean this text literally. But by "it", I
think that you mean the option itself instead of the text literally.
So we are talking about the same thing?

> but it must be declared outside of them. And you cannot say use a subshell to 
> make the option revert afterwards.



-- 
Regards,
Peng



reply via email to

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