bug-bash
[Top][All Lists]
Advanced

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

important bug


From: Klaus Bartels
Subject: important bug
Date: Wed, 28 Mar 2018 20:22:16 +0200 (CEST)
User-agent: Alpine 2.21 (LNX 202 2017-01-01)

If you execute the following script the result is wrong. It is self explaining:
-------------------------------
#
# GNU bash, version 4.4.12(1)-release (x86_64-slackware-linux-gnu)
# Linux ... 4.9.31 #1 SMP Wed Jun 7 14:57:36 CDT 2017 x86_64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz GenuineIntel GNU/Linux
#
test a = a && {
  echo this line should be displayed
  test a = b && {
    echo this line should also not displayed, but creates the error
    }
    # echo uncomment this line and all works fine again
  } || {
  echo this line should never be displayed
  }
#
------------------------------
If you uncomment the line in the middle, the script works correct.
I hope, it helps



Mit freundlichen Gruessen  /  Best regards
Klaus Bartels

///---------------------------------------------------------///
///      Bartels EDV (Bartels Consulting)                   ///
///      Klaus Bartels                                      ///
///      Am Bullerbach 11   Phone +49-5484/93 91 0          ///
///      D-49536 Lienen     FAX   +49-5484/93 91 16         ///
///      Germany            e-Mail address@hidden      ///
///---------------------------------------------------------///



reply via email to

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