* Re: varaiable expansion and here documents
@ 1993-01-18 7:23 Paul Haahr
1993-01-19 2:57 ` John Mackin
0 siblings, 1 reply; 4+ messages in thread
From: Paul Haahr @ 1993-01-18 7:23 UTC (permalink / raw)
To: Sm; +Cc: rc
the behavior of Byron's rc agrees with Tom Duff's paper, which refers
to variable names but not expressions. these rules are simple. let's
not confuse matters by allowing arbitrary expression syntax to heredocs.
my $.02.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: varaiable expansion and here documents
1993-01-18 7:23 varaiable expansion and here documents Paul Haahr
@ 1993-01-19 2:57 ` John Mackin
0 siblings, 0 replies; 4+ messages in thread
From: John Mackin @ 1993-01-19 2:57 UTC (permalink / raw)
To: The rc Mailing List
these rules are simple. let's not confuse matters by allowing
arbitrary expression syntax to heredocs.
I agree 100% with Paul. It's not necessary and would just be
a feeping creature.
OK,
John.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: varaiable expansion and here documents
@ 1993-01-18 16:33 Byron Rakitzis
0 siblings, 0 replies; 4+ messages in thread
From: Byron Rakitzis @ 1993-01-18 16:33 UTC (permalink / raw)
To: Sm, rc
I don't know if it's obvious in the documentation, but
variable expansion inside here documents is of a very
restricted form. e.g., look at the discusson of how the
'^' character is treated, or how to enter a literal '$'.
If you need list concatenation, backquote expansion, etc.,
then you should use the regular rc parser.
^ permalink raw reply [flat|nested] 4+ messages in thread
* varaiable expansion and here documents
@ 1993-01-18 6:47 Scott Merrilees
0 siblings, 0 replies; 4+ messages in thread
From: Scott Merrilees @ 1993-01-18 6:47 UTC (permalink / raw)
To: rc
I ran into an inconsistancy recently that may be of interest:
; a=(aa bb cc)
; b=2
; echo $a($b)
bb
; cat << EOF
$a($b)
EOF
aa bb cc(2)
;
I expected the output from echo & cat to be identical.
Comments ? Byron ?
Sm
--
Scott Merrilees, BHP Information Technology, Newcastle, Australia
Internet: Sm@bhpese.oz.au Phone: +61 49 40 2132 Fax: ... 2165
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1993-01-19 3:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-01-18 7:23 varaiable expansion and here documents Paul Haahr
1993-01-19 2:57 ` John Mackin
-- strict thread matches above, loose matches on Subject: below --
1993-01-18 16:33 Byron Rakitzis
1993-01-18 6:47 Scott Merrilees
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).