* talking about syntax
@ 1992-03-12 11:56 malte
0 siblings, 0 replies; only message in thread
From: malte @ 1992-03-12 11:56 UTC (permalink / raw)
To: rc
I'd like to suggest an improvement to rc's manual page.
1) commands may be preceeded by local variable definitions
2) simple commands can be grouped by '{' and '}'
3) backquote substitution looks like `{ complex_command }
or `simple_command
The manpages also says that amongst others '`' and '{' are special characters
to rc. Simple minds may come to the conclusion that
echo ` x=list { echo $x }
is valid rc syntax.
My suggestion is not to enumerate special charaters but special tokens, one
of them being '`{'.
Another suggestion is to change the parser in a way that '~' is only
special if it is a command, just like '\' is only special if being followed
by a newline charater. This would make it possible to specify negated character
classes in pattern matching in the same way as other shells do, thus making
transition from [c]sh to rc a little easier. It will also allow a simple
hack to use ~ as a substitute for $HOME.
Malte.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1992-03-12 11:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-03-12 11:56 talking about syntax malte
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).