Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

illegal space



% 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