Date:        Mon, 20 Apr 2020 19:09:13 +0200
    From:        Joerg Schilling <joerg.schill...@fokus.fraunhofer.de>
    Message-ID:  <5e9dd739.mzznyjmgko8+pliv%joerg.schill...@fokus.fraunhofer.de>

  | Whether it works to use the alias switch=case is a different thing.

  | If you like this to work, you need to have a lexer that expands
  | aliases before detecting keywords.

No, you'd need that if you wanted to be able to do

        alias case=whatever

but that's entirely different (and non-POSIX).

  | "bash" does not seem to do this.

bash handles the "alias case=switch" just fine in general, it is just
its command substitution parser (when unquoted) which is not quite up
to the task (bash uses yacc (or bison)).

kre


Reply via email to