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