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

Here document in code chunks



On Wed, 2 Sep 2015 10:50:07 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> Just got this report on #zsh,
> 
> % f() { cat << x << y; }
> foo
> x
> bar
> y
> % which f
> f () {
>     cat <<x <<y
> foo
> xbar
> y
> }
> 
> There should be a newline between x and bar in the output. The
> function itself works fine.

Looks like this isn't especially new --- was present in 5.0.0 --- so
while this ought to be easy enough to fix and go into the next release,
it's not especially related to 5.1 / 5.1.1, either.

pws



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