Re: Unexpected history expanded in heredoc in $() or <()

2020-05-29 Thread Dale R. Worley
"ladyrick" writes: > Description: > A heredoc starts with "cat <<'EOF'" is expected to not expand > anything just like in a single quote string. But when this > heredoc is in a $() or <(), history is expanded. > > > Repeat-By: > This works: > ``` > cat <<'EOF' > !! > EOF >

Unexpected history expanded in heredoc in $() or <()

2020-05-29 Thread ladyrick
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA

test -v with array elements

2020-05-29 Thread Luiz Angelo Daros de Luca
Hello, While using test -v, I noticed that it returns false when I use it with a sparse or empty array. I need to add [@] or [index] to have it return true. Is this expected? If so, it is not documented. It only has: "True if the shell variable varname is set (has been assigned a value)." I'm u

Re: Seg fault on "echo ~nosuchuser"

2020-05-29 Thread Keith Thompson
On Fri, May 29, 2020 at 11:40 AM Chet Ramey wrote: > > On 5/28/20 6:12 PM, Keith Thompson wrote: > > Configuration Information [Automatically generated, do not change]: > > Machine: x86_64 > > OS: linux-gnu > > Compiler: gcc > > Compilation CFLAGS: -g -Wno-parentheses -Wno-format-security > > unam

Re: Seg fault on "echo ~nosuchuser"

2020-05-29 Thread Chet Ramey
On 5/28/20 6:12 PM, Keith Thompson wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -Wno-parentheses -Wno-format-security > uname output: Linux bomb20 5.4.0-31-generic #35-Ubuntu SMP Thu May 7 > 2

Re: Seg fault on "echo ~nosuchuser"

2020-05-29 Thread Robert Elz
Date:Thu, 28 May 2020 15:12:47 -0700 From:Keith Thompson Message-ID: | Program received signal SIGSEGV, Segmentation fault. | 0x7777eddb in ?? () from /lib/x86_64-linux-gnu/libnss_systemd.so.2 | (gdb) where | #0 0x7777eddb in ?? () from /l