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


Groups > gnu.bash.bug > #15331

'bash +o history' to disable history has no visible effect as of v4.4

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Alex Kerzner <alex.j.kerzner@gmail.com>
Newsgroups gnu.bash.bug
Subject 'bash +o history' to disable history has no visible effect as of v4.4
Date Sun, 25 Aug 2019 14:38:58 -0400
Lines 50
Approved bug-bash@gnu.org
Message-ID <mailman.384.1566764889.1922.bug-bash@gnu.org> (permalink)
References <CAHu_f-x6UPS2zuy4ccbxtE6Ve76rVWWaiBjjA7yvjVqhQ=p4Ug@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1566764890 8244 209.51.188.17 (25 Aug 2019 20:28:10 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oYhBtAy5cef4z6d1L9RPsjbKn7CisQ9LV0bv/QVc+Kg=; b=jz4D5jI8kuj69sDsAbeAYLh9XKoWmSqaVtDMGNDsoStB51cYWpQ4zpmAku7CHdMB69 0p9GuEFUy2U0c7LZfgOkmUqGGRlQBqGVXMEfuqqsAtfTyb1IboKT6iMMiTxPvU95qJtD TcfhzlgAlLSJAJFHR7U2L2Nvjsm3Z1496teN4HRktpEhoSRcHqzhkV+elo550aKfxd4n Io+LO77NG9N3OzLwnTyFbpS+yUujysQLjrGzYyVW0iLXjA5Aed/diXxF5MFLsg6fVhpc 8KGWkwPC9nYVgNhQ8+zenkqkFJ7EHXh/3EF3SuA2FX1mDdDulfJWHkRvCcOSAKxXoct5 SNPg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oYhBtAy5cef4z6d1L9RPsjbKn7CisQ9LV0bv/QVc+Kg=; b=nOBmeSsDi1qy6vm9hyFqmTHAjIuWcuKQ2XFx96kQpax9HiYQrrvaja3KGjB/gsPRUH iW58OzTlNd8SNv7RsihS7PdWlyTo3VEJT6dtegHpJtb52d6KzMTTGLV4N9vGrJCi0xEt jQy3mQmfXGwR3Z7H+DHNnvCl8vI8fcfV5TqNcar99xQ0HssmbQJQV5gmqqs0VuE3fVvx udSmX5VRxdsr75L+tuaDehke7Br3w7HElsZ5K8el2eCgcIrNUOUNe2BAdJ0+s3hTwSrz 0WxgquK/oP6cLthi776kSeSA9VG7tXIwYDcbY4httFvrSYhW4H0lTpeWziLTmLgHggCY qxow==
X-Gm-Message-State APjAAAXqZ3EJOtRGp8Z2kNtujgb4Y8Ch34bIm17m0gkZtRDPBHDEPp01 6SBDebD198I5K2E0j+UF9nu2JWZDB1d0XSjBi5BP6xqQ
X-Google-Smtp-Source APXvYqwVC5DjNzdH8QfKfTRT5fcUQWSOILbkh1dTTF0+jHFp5qEV2na63rhfJPCzUE8UE51LPkYNNewR2DZ2s94KzvI=
X-Received by 2002:a67:ee0b:: with SMTP id f11mr9070720vsp.125.1566758349095; Sun, 25 Aug 2019 11:39:09 -0700 (PDT)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::e34
X-Mailman-Approved-At Sun, 25 Aug 2019 16:28:08 -0400
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAHu_f-x6UPS2zuy4ccbxtE6Ve76rVWWaiBjjA7yvjVqhQ=p4Ug@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15331

Show key headers only | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux arch-desktop 5.2.7-zen1-1-zen #1 ZEN SMP PREEMPT
Wed Aug 7 01:55:52 UTC 2019 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 9
Release Status: release

Description:

`bash +o history` no longer works as expected - that is, it doesn't
disable history - both in-memory history and saved-to-file history.
Occurs in bash 4.4 and later.
Rudimentary test results:
4.2.53(1)-release : pass
4.3.0(1)-release : pass
4.3.30(1)-release : pass
4.3.48(1)-release : pass
4.4.0(1)-release : fail
4.4.12(1)-release : fail
4.4.18(1)-release : fail
5.0.0(1)-release : fail
5.0.9(1)-release : fail

 - Alex Kerzner

Repeat-By:

~~~
# Long way, but potentially easier to implement a test case for
bash +o history # attempt to start a new shell with history disabled
set -o | grep history # See that history is still on
~~~

~~~
# Short way, a sweet and simple method
bash +o history -i -c 'set -o | grep history'
~~~

In both cases:
Expected: 'history    off' printed; command not sent to history file
(if shell is interactive, etc.)
Actual: 'history    on' printed; command sent to history file (if
shell is interactive, etc.)

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


Thread

'bash +o history' to disable history has no visible effect as of v4.4 Alex Kerzner <alex.j.kerzner@gmail.com> - 2019-08-25 14:38 -0400

csiph-web