bug-bash
[Top][All Lists]
Advanced

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

Re: compat31


From: Greg Wooledge
Subject: Re: compat31
Date: Tue, 15 Feb 2011 08:13:36 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Feb 14, 2011 at 07:26:16PM -0600, Dennis Williamson wrote:
> The user is performing this from a shell prompt. I had him try
> 
> [[ $BASH_VERSION =~ "4\.0" ]] && echo yes || echo no
> 
> which should output "yes" only if he's using Bash 4.0 *and* compat31
> is on.

Gah.  Too much trickery and silliness.  Just have him put these lines
in the script

echo "$BASH_VERSION"
shopt
set -o

Gather up ALL of the information at once instead of playing games and
trying to discern one piece at a time through a dirty window.



reply via email to

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