[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash-5.0: case command bug
From: |
Chet Ramey |
Subject: |
Re: bash-5.0: case command bug |
Date: |
Thu, 17 Jan 2019 20:58:16 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 |
On 1/17/19 6:21 PM, Drab Martin wrote:
> Hi,
>
> I have a problem with bash 5.0:
>
> -----
> machine1 ~ # bash --version
> GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
> Copyright (C) 2019 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> machine1 ~ # case "a-b" in *-*-*) echo "This is a BUG" ;; *) echo "This is
> not a BUG" ;; esac
> This is a BUG
I can't reproduce it:
$ cat x4
case "a-b" in *-*-*) echo "This is a BUG" ;; *) echo "This is not a BUG" ;;
esac
$ ../bash-5.0-patched/bash --version
GNU bash, version 5.0.2(3)-release (x86_64-apple-darwin18.2.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ ../bash-5.0-patched/bash ./x4
This is not a BUG
$ ../bash-5.0/bash --version
GNU bash, version 5.0.0(1)-release (x86_64-apple-darwin18.2.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ ../bash-5.0/bash ./x4
This is not a BUG
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/