I prefer to employ then if...then...elif...else...
construct over logical connectives i.e.||
or &&
, as the binding is tighter when employed in automated test frameworks - this is certainly true of BATS and do I wonder if it's also true of the wonder that is Shellspec? Do you observe the same errant/unwanted behaviour using a similar approach?