Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: westlake 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <11a52025-9a9f-363c-21da-e05301735f95@videotron.ca> Xref: csiph.com gnu.bash.bug:15111 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" 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" (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" "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" 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.