rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* New flag
@ 1991-08-01 18:43 Drazen Borkovic
  1991-08-02  8:26 ` Boyd Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: Drazen Borkovic @ 1991-08-01 18:43 UTC (permalink / raw)
  To: rc



Rc has a nice property that the input is not rescanned,
and consequently the parse errors are detected when they
are read. 

Under this light, I thought that a flag '-n' that causes
rc to read the commands but not to execute them, could
be useful for checking rc scripts. There are other flags
that other shells support, but this one did not appear
too strongly as a hack.

What do the other (un)satisfied customers think about this?

Drazen Borkovic (drazen@vlsi.cs.caltech.edu)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New flag
  1991-08-01 18:43 New flag Drazen Borkovic
@ 1991-08-02  8:26 ` Boyd Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Boyd Roberts @ 1991-08-02  8:26 UTC (permalink / raw)
  To: Drazen Borkovic, rc

I don't think you need -n.  The syntax is checked when you type it in
interactively, or when you execute the freshly written script.  By the
the time the production script is finished it shouldn't have any syntax errors.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1991-08-02  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-08-01 18:43 New flag Drazen Borkovic
1991-08-02  8:26 ` Boyd Roberts

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