bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: definite way to determine the running shell


From: Greg Wooledge
Subject: Re: definite way to determine the running shell
Date: Fri, 27 Mar 2015 15:11:31 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Mar 27, 2015 at 08:05:29PM +0100, Christoph Anton Mitterer wrote:
> On Fri, 2015-03-27 at 14:56 -0400, Greg Wooledge wrote: 
> > ... why are you running test suites in your .bashrc??
> 
> As said, I'd find it nice to have one aliases file for all shells, and
> that would in turn then be sourced from either .profile or
> rather .bashrc... so while tests wouldn't run in .bashrc itself, they'd
> always be executed along.

OK, this is for some personal configuration management.  Not as part of
a product you're deploying, etc.  As such, presumably you are not trying
to trick yourself into breaking your own logins or shell startups.  So,
just check for $BASH_VERSION and you should be all right.

Though, if it were me, I'd just simplify everything.  Don't use so many
different shells, don't use such complicated aliases that you have to
have multiple versions of them....



reply via email to

[Prev in Thread] Current Thread [Next in Thread]