Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
illegal space
- X-seq: zsh-users 30776
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: illegal space
- Date: Sat, 28 Nov 2026 06:14:51 -0700
- Archived-at: <https://zsh.org/users/30776>
- List-id: <zsh-users.zsh.org>
% for word in ${(f) $(cat ...)}; do ...;
done
... it throws 'bad substitution' if there's a space after the
'(f)', why is that? Of course there are places where spaces are
literal, or harmless, or forbidden, but the above puzzles me, I
don't see how it breaks anything.
% for word in ${ $(cat ...)}; do
...; done
... same error so it seems the '$(' is what objects to the space,
not the '(f)'.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author