rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* rc tweak
@ 1992-02-03  0:30 Byron Rakitzis
  0 siblings, 0 replies; only message in thread
From: Byron Rakitzis @ 1992-02-03  0:30 UTC (permalink / raw)
  To: rc

I am making a tweak to rc: if rc is invoked with any of the three
usual file descriptors (0, 1, 2) closed, rc will open /dev/null on
that descriptor.

I'm just checking to see that I'm not making a big gaffe here---I
want to avoid the nastiness that arises when Unix utilities are
called with any of those 3 descriptors closed. (also knowing that
0, 1, 2 are always valid fd's simplifies the bookkeeping inside
rc, but that is of secondary importance)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1992-02-03  0:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-02-03  0:30 rc tweak Byron Rakitzis

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