You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shell: bash 3.05b.*
Operating system: any
Liquid Prompt version (tag, commit): master, 9c80396
The initial bash version detection fails for BASH_VERSIONs with a minor version containing a non-numeric suffix, e.g. BASH_VERSION="3.05b.0(1)-release".
Such a BASH_VERSION results in a bash error:
-bash: 05b: value too great for base (error token is "05b")
Stripping a non-numeric suffix from bminor in liquidprompt resolves the issue.
The text was updated successfully, but these errors were encountered:
Your fix proposed in #523 that was merged into develop was not merged into master. While testing that fix, I discovered $BASH_VERSINFO[@], which offers a more stable way to check versions.
$BASH_VERSINFO has been in Bash since before version 3. This is a safer
and cleaner way to do this check.
The unset variable parameter expansion probably wouldn't ever be needed,
but it doesn't cost anything other than line length.
Fixesliquidprompt#522
Shell: bash 3.05b.*
Operating system: any
Liquid Prompt version (tag, commit): master, 9c80396
The initial bash version detection fails for BASH_VERSIONs with a minor version containing a non-numeric suffix, e.g.
BASH_VERSION="3.05b.0(1)-release"
.Such a BASH_VERSION results in a bash error:
Stripping a non-numeric suffix from
bminor
inliquidprompt
resolves the issue.The text was updated successfully, but these errors were encountered: