I can not find documentation indicating that this is the correct behavior. I tested this behavior on bash 4.2.25 and 4.1.2. These are the last ones to which I have easy access. It is very important if someone explains why the conditional change in the behavior of the previous subshell.
# ( set -e; false ; echo bye ) # ( set -e; false ; echo bye ) || echo "failed" bye #
thanks Brian
See link
-e , , , , elif , , ! AND-OR, .
, -e bash 4.2 man:
-e
bash
, , , - [...] , a & || [...]
false , LHS ||, , , -e . , , false || , set -e .
false
||
set -e
Source: https://habr.com/ru/post/1542390/More articles:Removing Data Warehouse Tables from Dropbox API Console - dropboxbackgrounds of yaml - xmlPillow resizes pixel images - Django / Pillow - pythonSimple_form association has_and_belongs_to_many does not update - ruby-on-railsWhat is the difference between static functions and a function outside a class in PHP? - oopOpening .DBF files as read-only with the Python dbf module - pythonЕсть ли способ удалить текстовые литералы из бинарных версий при использовании boost:: log API? - c++Могу ли я проверять только с помощью jQuery или мне нужен PHP? - javascriptbuilding a shape from saved tracks in pymc - pythonHow to use ENUM as a parameter for a method - enumsAll Articles