Bad substitution breaks conditional statement

2020-10-11 Thread Martin Schulte
Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-2bxm7h/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-sec$ uname output: Linux t1 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x

Re: Subject: Pressing Ctrl-C during any subshell evaluation terminates the shell

2020-10-11 Thread Chet Ramey
On 10/9/20 7:23 PM, Daniel Farina wrote: > Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: > > Pressing Ctrl-C during any subshell evaluation terminates the shell. I > noticed this when using direnv and emacs together: Ctrl-C would not cancel > a subprocess starte

Re: bug-bash Digest, Vol 215, Issue 9

2020-10-11 Thread Robert Elz
Date:Sun, 11 Oct 2020 16:26:58 +0700 From:Budi Message-ID: | set -n not work as its supposed job to check validity of a command That is not what it does. When -n is set, commands are not executed, simply parsed. | $ set -n 'echo HI' &&echo Y | Y What that

Re: bug-bash Digest, Vol 215, Issue 9

2020-10-11 Thread Budi
set -n not work as its supposed job to check validity of a command using Bash command inside a script ? for echo command checking $ set -n 'echo HI' &&echo Y Y $ set -n 'eco HI' &&echo Y Y won't do the check, how to solve ? On 10/10/20, bug-bash-requ...@gnu.org wrote: > Send bug-bash mailing l