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


Groups > gnu.bash.bug > #16762

auto_resume takes effect too early in command substitution

From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject auto_resume takes effect too early in command substitution
Date 2020-08-17 07:15 +0300
Message-ID <mailman.9.1597637753.2469.bug-bash@gnu.org> (permalink)
References <CAH7i3Lph7t2VTDDOsJu6+osY=qzx_yPgkTfJzkUvKUdv-XKkcA@mail.gmail.com>

Show all headers | View raw


See:

    $ sleep 20
    ^Z
    [1]+  Stopped                 sleep 20
    $
    $ auto_resume= sleep
    sleep: missing operand
    Try 'sleep --help' for more information.
    $
    $ echo $(auto_resume= sleep)
    bash: fg: no current jobs

    $

`auto_resume= sleep' has the same effect as `auto_resume= command sleep' in
a
command substitution but I think it shouldn't; I'd expect a command to
behave
the same way both inside and outside `$(...)'.

This is reproducible on 5.1.0(14)-beta too.

Oğuz

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


Thread

auto_resume takes effect too early in command substitution Oğuz <oguzismailuysal@gmail.com> - 2020-08-17 07:15 +0300

csiph-web