Re: interactive shell detection in shrc

2024-10-09 Thread Greg A. Woods
At Wed, 09 Oct 2024 09:57:31 +0700, Robert Elz wrote: Subject: Re: interactive shell detection in shrc > > But if the idea is to use just that to determine if a shell > is interactive, as in: > > | When I decided this is what interactive means > | all of the edge cases went away. Is there a >

Re: interactive shell detection in shrc

2024-10-09 Thread Robert Elz
Date:Fri, 04 Oct 2024 13:43:17 -0700 From:"Greg A. Woods" Message-ID: | To handle the second part of this rule we must compare $0 and $SHELL, as | the presence of any operands upon invocation will have changed $0 to | something other than $SHELL. That's not st

Re: interactive shell detection in shrc

2024-10-09 Thread Steffen Nurpmeso
Robert Elz wrote in <1895.1728442...@jacaranda.noi.kre.to>: |Date:Fri, 4 Oct 2024 07:53:59 -0700 |From:George Georgalis |Message-ID: | ||> test -t 0 ||> ||> is reliable. | |It is, for what it is suppposed to do. ... |and in the script if you do "test -t 0