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


Groups > gnu.bash.bug > #15111

bash bug with root account

From westlake <westlake2012@videotron.ca>
Newsgroups gnu.bash.bug
Subject bash bug with root account
Date 2019-07-10 04:01 -0400
Message-ID <mailman.787.1562745705.2688.bug-bash@gnu.org> (permalink)
References <11a52025-9a9f-363c-21da-e05301735f95@videotron.ca>

Show all headers | 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