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

Re: zsh 3.0/3.1 bug, zsh 3.1.4 regression



On Aug 18, 11:19am, SL Baur wrote:
> Subject: zsh 3.0/3.1 bug, zsh 3.1.4 regression
> 
> The following problem, which exists in zsh 3.0.4 and 3.1.3 and 3.1.4
> causes the cvs-1.10 regression tests to fail when /bin/sh is symlinked 
> to zsh.  [this is from test `devcom3-5'.]
> 
> $ cat <<EOF
> Enew    line    here
> G@#$^!@#=&
> EOF
> Enew    line    here
> G@#0@#=&

$^! is $! with the RC_EXPAND_PARAM option turned on.  Try this:

$ sleep 10 &
$ cat <<EOF
Enew    line    here
G@#$^!@#=&
EOF
Enew    line    here
G@#24108@#=&
   ^^^^^
   Note process ID here

It might be possible for zsh to special-case use of the ^ modifier, but
really the cvs test should be using a quoted here-document, like so:

cat <<'EOF'
Enew    line    here
G@#$^!@#=&
EOF

This should work correctly in bash, ksh, and sh, as well as zsh.



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