This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Some comment about Cygwin1.1.4


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@veritas.com
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]