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

Re: "here" document broken?



"Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@xxxxxxxxxxx> writes:

> > > #!/bin/zsh
> > > cat << EOD
> > >   xxx
> > > EOD
> > 
> >     This prints "xxx" for me in 4.2.5 and in 4.0.9 :?
> >  
> > > Any idea what's going wrong?
> > 
> >     I don't know. Do you have here documents in any script in your
> > system (working heredocs, I mean)? Then the problem may be in your
> > startup zsh scripts, but I can't think of where :??? 
> 
> This is a good point!!! 
> 
> I found that by chaning it to
> 
>   #!/bin/zsh -f
> 
> (which is a sensible thing to do anyway), it works well! This means that
> the problem has to be in my .zshrc, and though I don't see the problem
> on the spot, this should be solvable...

Probably using a "stdin drain" in your ~/.z* files.
Like typically, rsh or ssh when used without the -n flag.

Phil.



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