Y
Hacker News
new
|
ask
|
show
|
jobs
by
neuromanser
843 days ago
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...
1 comments
ufo
843 days ago
Is that only for command substitution?
link
neuromanser
842 days 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.
link