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


This is how bash does its sourcing of .bashrc on rsh: if there is a -c
command, and if stdin is NOT a tty, then bash will source .bashrc.

This has a couple of (minor) disadvantages, as I see it: at the moment,
rc does not run isatty() when input is via -c. This is because on my
Sun, isatty() takes a hideously long time to run (tenths of a second?).
Therefore, I'd like to run isatty() only when I have to.

The second disadvantage is that this heuristic is going to fail if
people start using rc inside of make, for example.

My only answer to all this is to suggest that rc peeks at some environment
variable to decide whether to source .rcrc or not. I know this is hacky,
so I'm reluctant to put it in.


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

only message in thread, other threads:[~1991-08-02 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-08-02 17:12 rsh 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).