On Wed, Jul 24, 2024 at 20:53:33 +0300, Mor Shalev via Bug reports for the GNU
Bourne Again SHell wrote:
> *if source command.sh ; then echo passfi*
> Or, similarly:
>
> *source command.sh && echo pass*
Remember how -e is defined:
-e Exit immediately if a pipeline (which m
+g...@wooledge.org
On Wed, Jul 24, 2024 at 8:53 PM Mor Shalev wrote:
> Hi Greg,
>
> Thanks a lot for your detailed response.
> You are right, I meant "as I expected".
>
> The else in my example was redundant.
> Let's say we remain with:
>
>
> *if source command.sh ; then echo passfi*
> Or, simi
Hi Greg,
Thanks a lot for your detailed response.
You are right, I meant "as I expected".
The else in my example was redundant.
Let's say we remain with:
*if source command.sh ; then echo passfi*
Or, similarly:
*source command.sh && echo pass*
looking at the following:
morshalev@morsh:~/works
On Wed, Jul 24, 2024 at 16:23:35 +0300, Mor Shalev via Bug reports for the GNU
Bourne Again SHell wrote:
> script.sh contain:
> if source command.sh ; then
> echo pass
> else
> echo fail
> fi
> command.sh contain 'set -e' at start. so command.sh should exit once detect
> fail.
>
> once callin
From: morshalev
To: bug-bash@gnu.org
Subject:
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VE