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


Groups > gnu.bash.bug > #15111

bash bug with root account

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From westlake <westlake2012@videotron.ca>
Newsgroups gnu.bash.bug
Subject bash bug with root account
Date Wed, 10 Jul 2019 04:01:35 -0400
Lines 27
Approved bug-bash@gnu.org
Message-ID <mailman.787.1562745705.2688.bug-bash@gnu.org> (permalink)
References <11a52025-9a9f-363c-21da-e05301735f95@videotron.ca>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1562745706 30122 209.51.188.17 (10 Jul 2019 08:01:46 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
X-Authority-Analysis v=2.3 cv=T//ysMCQ c=1 sm=1 tr=0 a=bLM/ODb0GI2A3veO+gxPdQ==:117 a=bLM/ODb0GI2A3veO+gxPdQ==:17 a=IkcTkHD0fZMA:10 a=ZEubg2I5eETC-43Zq8cA:9 a=QEXdDO2ut3YA:10
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Content-Language en-US
X-CMAE-Envelope MS4wfJcEyhVMbXo2tqwlldXJD62E4LcziWI7VwFc1NGpWPoJPl+7rOCrtHT0WoZXZ5gWDSwHy/SHD8FXY9xkqmLaSeGrSzJAVyyMeXDXJ+S7KRY3sYlt27vJ PjPQK5PRmu1eUjfPHYKNAytnkQ6DELC/WtNlP5Pp1JwlkqrbPBtyjT/TDywSsLoak5RYKC2kBfERxw==
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 24.53.0.22
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 <11a52025-9a9f-363c-21da-e05301735f95@videotron.ca>
Xref csiph.com gnu.bash.bug:15111

Show key headers only | View raw


System: linux 64-bit (debian stable, latest release buster)
Bash version: GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)

This bug occurs with the root account,

If a normal user types "su -l<enter>" and issues this "ls" statement,

ls -ld .!(?(.))

the output is without error. (the output lists all dot items with the 
exception of the annoying literals "." and "..")

If "su<enter>" (without the -l),  is given instead, then "!" is taken to 
be something else as though I am attempting to fire up a bash history 
command (eg: "!100" to run the 100th command from bash's history list)

The error with ls -ld .!(?(.)) after doing "su<enter>"
"bash: !: event not found"

I could run this command in any directory without any issue, the error 
only occurs when entering the root account in bash with "su<enter>" from 
a normal user account.

I'm not sure if this is entirely the fault of bash, but "ps" shows that 
the shell being used after typing "su" is bash.

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


Thread

bash bug with root account westlake <westlake2012@videotron.ca> - 2019-07-10 04:01 -0400

csiph-web