help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Why `echo !(*.l).c` behaves different depending on the c


From: Eduardo Bustamante
Subject: Re: [Help-bash] Why `echo !(*.l).c` behaves different depending on the context?
Date: Fri, 8 Feb 2019 20:19:22 -0800

On Fri, Feb 8, 2019 at 8:04 PM Peng Yu <address@hidden> wrote:
(...)
> See below. `echo !(*.l).c` sometimes is OK but sometimes it is an
> error. Is it a correct behavior?

Yes. "extglob" changes the behavior of the parser. This behavior is
correct and expected. Read: https://mywiki.wooledge.org/glob#extglob



reply via email to

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