rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* a variable i'd like to see
@ 1991-08-01 21:33 Arnold Robbins
  1991-08-02  9:02 ` Boyd Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: Arnold Robbins @ 1991-08-01 21:33 UTC (permalink / raw)
  To: rc

I'd like to see $ppid for the value of getppid(2).  This makes it
trivial to know if you have an absolute login shell, $ppid == 1.
Yes, I know it's not foolproof in these days of telnet, rlogin,
and xterms, but it's still something i'd like to see.


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

* Re: a variable i'd like to see
  1991-08-01 21:33 a variable i'd like to see Arnold Robbins
@ 1991-08-02  9:02 ` Boyd Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Boyd Roberts @ 1991-08-02  9:02 UTC (permalink / raw)
  To: rc

    I'd like to see $ppid for the value of getppid(2).  This makes it
    trivial to know if you have an absolute login shell, $ppid == 1.
    Yes, I know it's not foolproof in these days of telnet, rlogin,
    and xterms, but it's still something i'd like to see.

Uhhh, ever thought using $0?  Or checking for a variable?


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-08-01 21:33 a variable i'd like to see Arnold Robbins
1991-08-02  9:02 ` 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).