At Mon, 30 Sep 2024 22:52:18 +0200, tlaro...@kergis.com wrote:
Subject: Re: interactive shell detection in shrc
>
> But, if I'm not mistaken, the discussion was about testing if a shell
> is interactive, that is, "inheriting" whatever has been set and
> testing it.
Indeed, so by tradition a Unix s
On Fri, Oct 04, 2024 at 07:53:59AM -0700, George Georgalis wrote:
> On Mon, Sep 30, 2024 at 1:26?PM George Georgalis wrote:
>
> >
> > On Mon, Sep 30, 2024 at 1:09?PM wrote:
> >
> >> So how can the test be reliable in all circumstances?
> >>
> >
> > test -t 0
> >
> > is reliable.
> >
> > I use
>
On Mon, Sep 30, 2024 at 1:26 PM George Georgalis wrote:
>
> On Mon, Sep 30, 2024 at 1:09 PM 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 o