www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/10/27/04:05:56

From: Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
Message-Id: <200010270805.KAA00023@lws256.lu.erisoft.se>
Subject: Re: Bash 2.04 beta 6a
To: djgpp-workers AT delorie DOT com
Date: Fri, 27 Oct 2000 10:05:31 +0200 (MET DST)
In-Reply-To: <2950-Fri27Oct2000082016+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Oct 27, 2000 08:20:16 AM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> >From the Bash docs:
> 
>     An  interactive shell is one whose standard input and out-
>     put are both connected  to  terminals  (as  determined  by
>     isatty(3)), or one started with the -i option.  PS1 is set
>     and $- includes i if bash is interactive, allowing a shell
>     script or a startup file to test this state.

On Solaris:
bash$ uname -a
SunOS lws256 5.6 Generic_105181-16 sun4u sparc
bash$ echo $-
imH
bash$ perl5 -e 'system("bash -c \"echo \$-\n\"");'
s

Hence perl's bash invocation is non-interactive.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019