Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: illegal space
On 2026-11-28 07:25, Philippe Altherr wrote:
It's the `${` that objects to the space. It must be immediately
followed by a parameter name, another substitution, a command
substitution, or a parenthesized list of flags which is itself
immediately followed by a parameter name, another substitution, or a
command substitution. None of these allow a space at their beginning.
Ah! I know that you can't do: '${ (f)' because it would be ambiguous to
parse. But the rule holds true even without the flag. Ok, that's
consistent and even if the space in my example might in theory do no
mischief, there's no reason the break the rule. Thanks, that's clear.
I'm glad it's not the '$(' that's at issue.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author