3 ms·
I've been writing a (hopefully one day) POSIX compatible shell using a parser generator library. Having to try and fit sh into a parser framework makes you make
by nixpulvis 7y ago
I've been writing a (hopefully one day) POSIX compatible shell using a parser generator library. Having to try and fit sh into a parser framework makes you make some choices, and it's a great way to find these weird things. For example, I was surprised at first to learn that `{ ls }` isn't a valid program. Or:
FOO=1 echo $FOO
# vs
FOO=1; echo $FOO
# vs
FOO=1 printenv FOO