mca-wtsi/psst — pull request #1 by syohex (2011-11-23 01:24:15+00:00)
Title: Checking bash version with using '--version' option depends on locale

Output of Bash '--version' option depends on locale.
Its output is following on Japanese platform

> % bash --version
>GNU bash, バージョン 4.2.10(1)-release (x86_64-pc-linux-gnu)
>Copyright (C) 2011 Free Software Foundation, Inc.
>ライセンス GPLv3+: GNU GPL バージョン 3 またはそれ以降
>
>This is free software; you are free to change and redistribute it.
>There is NO WARRANTY, to the extent permitted by law.

This output does not match 'qr{\bbash\b.* version (.*)})'.
I use latest bash, but test's are failed.

I suggest you that using Bash's environment variable $BASH_VERSION
or $BASH_VERSINFO, or setting locale English($ENV{LANG} = 'c'} in your test program.

My patch is using $BASH_VERSION.

Thanks