Re:Designing a programming language to speedrun Advent of Code
by xiaq on Tuesday November 14, 2023 @03:58AM
(#38260767)
You can write A | B | C | result=$(cat) in shell.
Edit: this only works if the shell runs the last command in the current environment (as opposed to a subshell), and only ksh and zsh seem to do that...
Edit: this only works if the shell runs the last command in the current environment (as opposed to a subshell), and only ksh and zsh seem to do that...