Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16310

local failure

From Laurent Picquet <lpicquet@gmail.com>
Newsgroups gnu.bash.bug
Subject local failure
Date 2020-05-28 08:02 +0100
Message-ID <mailman.537.1590675383.2541.bug-bash@gnu.org> (permalink)
References <CAH+roKWmQLjDGf_UpDabq6AHN+CVF_bKd1uyO2d8EadXzJ72MA@mail.gmail.com>

Show all headers | View raw


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-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/build/bash-N2nMjo/bash-4.4.18=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses -Wno-format-security
uname output: Linux laurent-HP-Notebook 4.15.0-65-generic #74-Ubuntu SMP
Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.4
Patch Level: 20
Release Status: release

Description:
        [Detailed description of the problem, suggestion, or complaint.]

Repeat-By:
function somethingThatFails {
    return 1
}

function aFunction {
    local aVar="$(somethingThatFails)" || { echo "is expected to go there";
return 1; }
}

function anotherFunction {
    local aVar
    aVar="$(somethingThatFails)" || { echo "does go there"; return 1; }
}

aFunction
anotherFunction

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

local failure Laurent Picquet <lpicquet@gmail.com> - 2020-05-28 08:02 +0100

csiph-web