bug-bash
[Top][All Lists]
Advanced

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

Re: nullglob is documented incorrectly


From: Emanuele Torre
Subject: Re: nullglob is documented incorrectly
Date: Mon, 6 Nov 2023 15:21:10 +0100
User-agent: Mutt/2.2.12 (2023-09-09)

On Mon, Nov 06, 2023 at 08:56:11AM -0500, Chet Ramey wrote:
> If nullglob is set, the non-matching pattern expands to the null string,
> which is removed by word splitting.

Well, I guess that is one way to look at it, but this explanation does
not make much sense in my opinion since the results of pathname
expansion are not field split.

The results of expanding a glob with no matches while nullglob is set
are not one null string, they are no strings.

o/
 emanuele6



reply via email to

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