bug-bash
[Top][All Lists]
Advanced

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

Re: doc improvement for dotglob


From: L. A. Walsh
Subject: Re: doc improvement for dotglob
Date: Tue, 27 Sep 2016 09:41:56 -0700
User-agent: Thunderbird



Ian Kelling wrote:
The docs currently say:

"When a pattern is used for filename expansion, the character '.' at
the start of a filename or immediately following a slash must be matched
explicitly, unless the shell option 'dotglob' is set.
The last bit should be changed to say

unless the shell option 'dotglob' is set and the file is not named '.'
or '..'.
---
But that's not what is supposed to happen. It doesn't say it matches the filename with "." [or ".."], but the *start* of a filename or after a "/". I.e., interactive shell usage should not include ".profile/.foo/.anything" in
such expansions.





reply via email to

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