Re: interactive shell detection in shrc
George Georgalis <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <CAHK3FNzpLhMij-GWXQOQMDz8sai7BpezeyscB7omYZsJaxrMmQ@mail.gmail.com> |
On Mon, Sep 30, 2024 at 1:09 PM <[email protected]> wrote: > So how can the test be reliable in all circumstances? > test -t 0 is reliable. I use tty -s || return 0 to remind me what I'm testing for (same difference), and branch out of .profile for not interactive sessions. -- George Georgalis, (415) 894-2710, http://www.galis.org/