Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
neuromanser
· 2y ago · 0 comments
It's built-in in Zsh: The substitution ‘$(cat foo)’ may be replaced by the faster ‘$(<foo)’.
https://zsh.sourceforge.io/Doc/Release/Expansion.html#Comman...
Comments
[–]
ufo
2y ago
Is that only for command substitution?
[–]
neuromanser
OP
2y ago
What do you mean? It's specifically for $(cat …) / $(< …): the latter is a faster equivalent of the former. Other than that, see my comment about $READNULLCMD.