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 bart...@bartels.com      ///
///---------------------------------------------------------///

Reply via email to