bug-bash
[Top][All Lists]
Advanced

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

Re: nullglob is documented incorrectly


From: Chet Ramey
Subject: Re: nullglob is documented incorrectly
Date: Mon, 6 Nov 2023 09:30:44 -0500
User-agent: Mozilla Thunderbird

On 11/6/23 9:22 AM, Andreas Schwab wrote:
On Nov 06 2023, Chet Ramey wrote:

If nullglob is set, the non-matching pattern expands to the null string,
which is removed by word splitting.

Since filename expansion happens after word splitting, this cannot be
true.

Then maybe a better way to put it is "removed, as with word splitting,"
since the word splitting section in the man page describes what happens
to arguments that are unquoted null strings.

The other problem is that POSIX uses null string and empty string as
synonyms, so text that inherits what POSIX says inherits that meaning.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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