bug-bash
[Top][All Lists]
Advanced

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

nullglob is documented incorrectly


From: Emanuele Torre
Subject: nullglob is documented incorrectly
Date: Sun, 5 Nov 2023 11:15:50 +0100
User-agent: Mutt/2.2.12 (2023-09-09)

Today, a user in the #bash IRC channel of libera.chat, misunderstood how
nullglob is supposed to work because is documented incorrectly in the
man page:

    'nullglob'
         If set, Bash allows filename patterns which match no files to
         expand to a null string, rather than themselves.

globs expand to nothing if there are no matches with nullglob set, not
to the null/empty string.

o/
 emanuele6



reply via email to

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