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


Groups > gnu.bash.bug > #15114 > unrolled thread

Re: bash bug with root account

Started byChet Ramey <chet.ramey@case.edu>
First post2019-07-10 09:15 -0400
Last post2019-07-10 09:15 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: bash bug with root account Chet Ramey <chet.ramey@case.edu> - 2019-07-10 09:15 -0400

#15114 — Re: bash bug with root account

FromChet Ramey <chet.ramey@case.edu>
Date2019-07-10 09:15 -0400
SubjectRe: bash bug with root account
Message-ID<mailman.817.1562764539.2688.bug-bash@gnu.org>
On 7/10/19 4:01 AM, westlake wrote:
> 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 "..")

This account has the `extglob' shell option enabled.

> 
> 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"

This account does not.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web