* RE: "here" document broken?
@ 2005-10-28 9:11 Com MN PG P E B Consultant 3
2005-10-28 10:12 ` DervishD
2005-10-30 5:04 ` Philippe Troin
0 siblings, 2 replies; 5+ messages in thread
From: Com MN PG P E B Consultant 3 @ 2005-10-28 9:11 UTC (permalink / raw)
To: zsh-users Mailinglist
> > #!/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...
Regards,
Ronald
--
Ronald Fischer <mn-pg-p-e-b-consultant-3.com@siemens.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "here" document broken?
2005-10-28 9:11 "here" document broken? Com MN PG P E B Consultant 3
@ 2005-10-28 10:12 ` DervishD
2005-10-30 5:04 ` Philippe Troin
1 sibling, 0 replies; 5+ messages in thread
From: DervishD @ 2005-10-28 10:12 UTC (permalink / raw)
To: Com MN PG P E B Consultant 3; +Cc: zsh-users Mailinglist
Hi Roland :)
* Com MN PG P E B Consultant 3 <mn-pg-p-e-b-consultant-3.com@siemens.com> dixit:
> > > 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
Good!
> (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...
If you don't mind posting here your RC files, or sending them to
me, I can try to lend a hand. The problem may be in ANY of the RC
files except /etc/zshenv unless it is protected by "[[ -o rcs ]]".
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "here" document broken?
2005-10-28 9:11 "here" document broken? Com MN PG P E B Consultant 3
2005-10-28 10:12 ` DervishD
@ 2005-10-30 5:04 ` Philippe Troin
1 sibling, 0 replies; 5+ messages in thread
From: Philippe Troin @ 2005-10-30 5:04 UTC (permalink / raw)
To: Com MN PG P E B Consultant 3; +Cc: zsh-users Mailinglist
"Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@siemens.com> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "here" document broken?
2005-10-28 7:25 Com MN PG P E B Consultant 3
@ 2005-10-28 9:04 ` DervishD
0 siblings, 0 replies; 5+ messages in thread
From: DervishD @ 2005-10-28 9:04 UTC (permalink / raw)
To: Com MN PG P E B Consultant 3; +Cc: zsh-users Mailinglist
Hi Ronald :)
* Com MN PG P E B Consultant 3 <mn-pg-p-e-b-consultant-3.com@siemens.com> dixit:
> It looks as if the "<<" redirection is broken.
That version you're using is pretty old, but I personally doubt
the here docs are broken, because that's heavily used and any bug in
that particular part of the shell would have been spotted rapidly.
> #!/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 :??? The problem is
weird.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
^ permalink raw reply [flat|nested] 5+ messages in thread
* "here" document broken?
@ 2005-10-28 7:25 Com MN PG P E B Consultant 3
2005-10-28 9:04 ` DervishD
0 siblings, 1 reply; 5+ messages in thread
From: Com MN PG P E B Consultant 3 @ 2005-10-28 7:25 UTC (permalink / raw)
To: zsh-users Mailinglist
I'm using zsh 4.0.7 under Linux.
It looks as if the "<<" redirection is broken. For example,
even such a simple usage of a here document such as:
#!/bin/zsh
cat << EOD
xxx
EOD
does not print xxx, but complains about "no such file or directory"
in line 2.
Any idea what's going wrong?
Ronald
--
Ronald Fischer <mn-pg-p-e-b-consultant-3.com@siemens.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-30 5:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28 9:11 "here" document broken? Com MN PG P E B Consultant 3
2005-10-28 10:12 ` DervishD
2005-10-30 5:04 ` Philippe Troin
-- strict thread matches above, loose matches on Subject: below --
2005-10-28 7:25 Com MN PG P E B Consultant 3
2005-10-28 9:04 ` DervishD
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).