Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: $(...) and <<



2014-07-31 10:27:11 +0100, Stephane Chazelas:
> $ zsh -c 'echo $(cat << EOF
> blah)
> EOF
> ); echo test'
> zsh:4: parse error near `)'
> 
> Most shells (ash being a notable exception) used to suffer from that bug.
> 
> zsh seems to be the only one nowadays (tested ksh93/bash/dash/yash/mksh).
[...]

BTW,

zsh -c '
  echo $(
    case a in
      *) echo test
    esac)'

is also a problem.

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author