* here-document/multiline parameter conflict
@ 1996-08-23 17:11 J.D. Laub
1996-08-23 17:53 ` Zoltan Hidvegi
0 siblings, 1 reply; 3+ messages in thread
From: J.D. Laub @ 1996-08-23 17:11 UTC (permalink / raw)
To: zsh-workers
I didn't see this mentioned in Etc/BUGS for 3.0.0. Is the following
behavior by design? It seems really bizarre.
This (trivial) script works under a standard ksh:
#!/bin/ksh
cat <<EOF | sed -e '/t/{
s/t/T/
}'
one
three
five
EOF
Changing the first line to #!/usr/local/bin/zsh -f yields this:
quirk: unmatched ' [9]
However, if I embed the here-document within the parameter to sed, it
works under zsh:
#!/usr/local/bin/zsh -f
cat <<EOF | sed -e '/t/{
one
three
five
EOF
s/t/T/
}'
--
J.D. Laub (Laubster) HBOC/CliniCom|"I think you're very, very, very, very, very,
jdl@clinicom.com Boulder,CO |very, very, very, very, ..." - Flying Lizards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: here-document/multiline parameter conflict
1996-08-23 17:11 here-document/multiline parameter conflict J.D. Laub
@ 1996-08-23 17:53 ` Zoltan Hidvegi
1996-08-23 17:58 ` J.D. Laub
0 siblings, 1 reply; 3+ messages in thread
From: Zoltan Hidvegi @ 1996-08-23 17:53 UTC (permalink / raw)
To: J.D. Laub; +Cc: zsh-workers
> I didn't see this mentioned in Etc/BUGS for 3.0.0. Is the following
> behavior by design? It seems really bizarre.
>
> This (trivial) script works under a standard ksh:
> #!/bin/ksh
> cat <<EOF | sed -e '/t/{
> s/t/T/
> }'
> one
> three
> five
> EOF
>
> Changing the first line to #!/usr/local/bin/zsh -f yields this:
> quirk: unmatched ' [9]
I cannot reproduce this and looking at the source it seems that it should
not happen. Are you absolutely sure that /usr/local/bin/zsh is really
zsh-3.0.0? Older zsh versions did have this problem.
Zoltan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: here-document/multiline parameter conflict
1996-08-23 17:53 ` Zoltan Hidvegi
@ 1996-08-23 17:58 ` J.D. Laub
0 siblings, 0 replies; 3+ messages in thread
From: J.D. Laub @ 1996-08-23 17:58 UTC (permalink / raw)
To: Zoltan Hidvegi; +Cc: zsh-workers
Zoltan Hidvegi writes:
> I cannot reproduce this and looking at the source it seems that it should
> not happen. Are you absolutely sure that /usr/local/bin/zsh is really
> zsh-3.0.0? Older zsh versions did have this problem.
Blab nab it, just goes to show no matter how careful you are, it's
still easy to look like a fool. I had put 3.0.0 in my own bin while I
test drove it. Yup, it's fixed. I apologize for wasting your time.
--
J.D. Laub (Laubster) HBOC/CliniCom|"I think you're very, very, very, very, very,
jdl@clinicom.com Boulder,CO |very, very, very, very, ..." - Flying Lizards
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-08-23 18:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-23 17:11 here-document/multiline parameter conflict J.D. Laub
1996-08-23 17:53 ` Zoltan Hidvegi
1996-08-23 17:58 ` J.D. Laub
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).