Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <398FDC2B.55986AC7@telia.com> Date: Tue, 08 Aug 2000 12:08:43 +0200 From: Christian =?iso-8859-1?Q?J=F6nsson?= X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bob McGowan CC: cygwin AT sources DOT redhat DOT com Subject: Re: Some comment about Cygwin1.1.4 References: <398EF5AD DOT 97DC2CEC AT onera DOT fr> <200008071749 DOT NAA01544 AT envy DOT delorie DOT com> <398EFA1C DOT 6EC280E7 AT onera DOT fr> <200008071834 DOT OAA01863 AT envy DOT delorie DOT com> <398F0A7F DOT CD49D864 AT vinschen DOT de> <200008071916 DOT PAA02265 AT envy DOT delorie DOT com> <398F0F75 DOT 82839993 AT veritas DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit What about trying to execute "display-shell-version (C-x C-v)". If we're in a bash shell, we'd get the verision info (works on both bash1 and bash2) and I suppose that if we're on (a)sh we'd get nothing. Cheers, /ChJ Bob McGowan wrote: > > DJ Delorie wrote: > > > > > echo $BASH_VERSION ? > > > > No, because if you run sh from bash, it may inherit that environment > > variable. > > By default, it should not be exported, but a user could export it > themselves. > > How about a double check of RANDOM? If it gets exported, the inherited > value in (a)sh appears to be constant, while in bash it changes with > each access. The only problem I can see with this is that a user could > unset RANDOM, then make a new variable with that name, but which will > not have the special feature. I would think that this is rare enough to > maybe be ignored? > > -- > Bob McGowan > Staff Software Quality Engineer > VERITAS Software > rmcgowan AT veritas DOT com > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com