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 c...@case.edu http://tiswww.cwru.edu/~chet/