[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: . and .. are included where they were excluded before
From: |
Lawrence Velázquez |
Subject: |
Re: . and .. are included where they were excluded before |
Date: |
Tue, 26 Jan 2021 08:04:49 -0500 |
> On Jan 26, 2021, at 12:51 AM, "" <kfm@plushkava.net> <kfm@plushkava.net>
> wrote:
>
>> On 25/01/2021 21:36, gregrwm wrote:
>>
>> is this change in functionality a regression, a "fix", or a new
>> feature?
>> is there any option to exclude them?
>> in all 3, .. is included in .?
>
> This seems to be as expected. The pattern must begin with a literal dot in
> order to match either of the pathnames '.' and '..'. This holds true,
> irrespective of whether or not dotglob is enabled.
>
> Ergo, a pattern of ? should not match the pathname '.', whereas a pattern of
> .? can - and will - match the pathname '..'. Similarly, a pattern of .* would
> match both '.' and '..'.
According to the manual, "[t]he filenames ‘.’ and ‘..’ must always be
matched explicitly even if dotglob is set." I don't see any subsequent
text that overrules this for extended globs.
https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html
vq
- . and .. are included where they were excluded before, gregrwm, 2021/01/25
- Re: . and .. are included where they were excluded before, gregrwm, 2021/01/25
- Re: . and .. are included where they were excluded before, , 2021/01/26
- Re: . and .. are included where they were excluded before,
Lawrence Velázquez <=
- Re: . and .. are included where they were excluded before, Chet Ramey, 2021/01/26
- Re: . and .. are included where they were excluded before, gregrwm, 2021/01/26
- Re: . and .. are included where they were excluded before, , 2021/01/26
- Re: . and .. are included where they were excluded before, Chet Ramey, 2021/01/26
- Re: . and .. are included where they were excluded before, , 2021/01/26
- Re: . and .. are included where they were excluded before, Chet Ramey, 2021/01/26
- Re: . and .. are included where they were excluded before, , 2021/01/26
- Re: . and .. are included where they were excluded before, pepa65, 2021/01/27
- Re: . and .. are included where they were excluded before, , 2021/01/27