[PATCH] fdflags: fix -s with multiple flags, and multiple fd arguments

2023-11-05 Thread Emanuele Torre
fdflags -s was re-parsing the setspec for each fd argument. This is problematic because it is using strtok() to parse it destructively. So, only the first part of the setspec will be set for all file descriptors; the other parts will only be set for the first file descriptor: $ enable fdflags

Re: nullglob is documented incorrectly

2023-11-05 Thread Andreas Kähäri
On Sun, Nov 05, 2023 at 11:15:50AM +0100, Emanuele Torre wrote: > 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 m

nullglob is documented incorrectly

2023-11-05 Thread Emanuele Torre
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.