zsh-workers
 help / color / mirror / code / Atom feed
* 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

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).