Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: qpdf or bashcompinit completion bug
2025-08-18 22:12:46 +0200, Vincent Lefevre:
[...]
> I would not expect IFS to have changed to a non-standard value for
> the completion functions. Or should these functions be written in
> such a way they should work for any IFS value?
[...]
IFS is set by users when they want to split things using $(...)
or $=var of read.
I'd expect completion functions, if they want to split things
would either use the s[sep] or f (short for ps[\n]) or 0 (short
for ps[\0]) parameter expansion flags or
local IFS='chars-to-split-on'
(or IFS=... read -rA array...) if they want to use IFS-splitting.
But here in any case, the output of qpdf --zsh-completion is
intended to be evaluated as is, not split, with the default
value of IFS or otherwise, do doing that splitting (leaving
$(...) unquoted) is wrong.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author