News for hackers. Stuff that matters.
Re:Useful Shell Prompt (2020) by chasil on Monday April 04, 2022 @09:58PM (#30914449)
My point is that the shell would be a much better tool if the language could be expressed with a simple, LR-parsed yacc grammar.

Because the shell needs such an advanced parser, it shows that the language is full of ambiguity and pitfalls.

The slides for the parent presentation have this gem:

Quiz: Which is the command that outputs \\ ?

1 echo "\\\"

2 echo "\\\\"

3 echo "\\\\\\"

The language should be clearer, and less ambiguous.

There are no comments on this comment yet.