Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "here" document broken?
- X-seq: zsh-users 9594
- From: Philippe Troin <phil@xxxxxxxx>
- To: "Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@xxxxxxxxxxx>
- Subject: Re: "here" document broken?
- Date: 29 Oct 2005 22:04:52 -0700
- Cc: "zsh-users Mailinglist" <zsh-users@xxxxxxxxxx>
- In-reply-to: <6F0CB04509C11D46A54232E852E390AC44B9AA@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6F0CB04509C11D46A54232E852E390AC44B9AA@xxxxxxxxxxxxxxxxxxxxxxxxxx>
"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