bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash-5.0: case command bug


From: Drab Martin
Subject: bash-5.0: case command bug
Date: Fri, 18 Jan 2019 00:21:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

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
-----

as opposed to bash 4:

-----
machine2 ~ # bash --version
GNU bash, version 4.4.23(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 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.

machine2 ~ # case "a-b" in *-*-*) echo "This is a BUG" ;; *) echo "This is not a 
BUG" ;; esac
This is not a BUG
-----

Is it a bug or a feature? Because for me it completely crippled Gentoo compilation system, as the config.sub does not work correctly anymore. Which in turn means that any automake building does not work as it results to:

-----
machine1 ~ # /usr/share/gnuconfig/config.sub x86_64-pc-linux-gnu
Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
-----

while it should do

-----
machine2 # /usr/share/gnuconfig/config.sub x86_64-pc-linux-gnu
x86_64-pc-linux-gnu
-----

Thank you.

Regards,
Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]