* unix RC shell bug [not found] <E15cuG8-000P4t-0Y@anchor-post-34.mail.demon.net> @ 2001-09-01 5:11 ` Matt 2001-09-03 6:14 ` Callum Gibson 2001-09-03 6:18 ` Decklin Foster 0 siblings, 2 replies; 5+ messages in thread From: Matt @ 2001-09-01 5:11 UTC (permalink / raw) To: 9fans; +Cc: rc after hours of not noticing one of my variables was a list and not a string (it's 5am I've been on this since 10pm!) I eventually got to this sorry state. in good ol' plan9 cpu% t=(1 2 3 6 7) cpu% echo $#t 5 cpu% echo $"t 1 2 3 6 7 in /usr/local/bin/rc (ver 1.6) on FreeBSD (ver 4.2-RELEASE) ; t=(1 2 3 6 7) ; echo $#t 5 ; echo $"t syntax error just fyi ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unix RC shell bug 2001-09-01 5:11 ` unix RC shell bug Matt @ 2001-09-03 6:14 ` Callum Gibson 2001-09-03 6:18 ` Decklin Foster 1 sibling, 0 replies; 5+ messages in thread From: Callum Gibson @ 2001-09-03 6:14 UTC (permalink / raw) To: matt; +Cc: rc matt@proweb.co.uk writes: }cpu% echo $"t }1 2 3 6 7 The list flattening operator is ^ not " in the unix rc. i.e. echo $^t This is mentioned in the INCOMPATIBILITIES section of the manpage. Don't know why this is the case, other than to avoid possible confusion with the meaning of " as a quote char in other unix shells, plus ^ is used as the concatenation operator anyway as in: ; echo (a b c)^(1 2 3) (c)2001 Callum Gibson callum.gibson@db.com Global Markets IT, Deutsche Bank, Australia 61 2 9258 1620 ### The opinions in this message are mine and not Deutsche's ### ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unix RC shell bug 2001-09-01 5:11 ` unix RC shell bug Matt 2001-09-03 6:14 ` Callum Gibson @ 2001-09-03 6:18 ` Decklin Foster 1 sibling, 0 replies; 5+ messages in thread From: Decklin Foster @ 2001-09-03 6:18 UTC (permalink / raw) To: Matt; +Cc: rc Matt writes: > ; echo $"t > syntax error It's $^t -- See the INCOMPATIBILITES section in the man page. I am unsure of the reasons for this, but the ChangeLog notes: 1999-01-05 Documentation: the Bell Labs rc now has the list flattening operator, but spelt $"foo. -- things change. decklin@red-bean.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unix RC shell bug @ 2001-09-03 7:23 Byron Rakitzis 0 siblings, 0 replies; 5+ messages in thread From: Byron Rakitzis @ 2001-09-03 7:23 UTC (permalink / raw) To: decklin, matt; +Cc: rc $^ came years before $" was introduced into plan9's rc. I guess there's no reason not to make Unix rc understand $" as well, but it would be important to leave $^ as is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: unix RC shell bug
@ 2001-09-03 8:19 Smarasderagd
0 siblings, 0 replies; 5+ messages in thread
From: Smarasderagd @ 2001-09-03 8:19 UTC (permalink / raw)
To: byron, decklin, matt; +Cc: rc
Byron Rakitzis <byron@rakitzis.com> writes:
>$^ came years before $" was introduced into plan9's rc.
>
>I guess there's no reason not to make Unix rc understand $" as well,
>but it would be important to leave $^ as is.
Ideally, other uses of " should not become syntax errors, although I haven't
taken advantage of it being just another character myself.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-09-03 8:35 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <E15cuG8-000P4t-0Y@anchor-post-34.mail.demon.net> 2001-09-01 5:11 ` unix RC shell bug Matt 2001-09-03 6:14 ` Callum Gibson 2001-09-03 6:18 ` Decklin Foster 2001-09-03 7:23 Byron Rakitzis 2001-09-03 8:19 Smarasderagd
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).