bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in !! expansion, bash 4.4-beta


From: Keith Thompson
Subject: Bug in !! expansion, bash 4.4-beta
Date: Sun, 25 Oct 2015 14:49:16 -0700

I'm running bash 4.4 beta, built from source (bash-4.4-beta.tar.gz) on Linux Mint 17.2.

!! history expansion works correctly in simple cases, but not when part of a $(...) expansion.

This problem does not occur with bash 4.3.11

The last error message shown occurred when I typed Esc Ctrl-E (shell-expand-line) after typing
"echo $(!!".

$ bash --norc
bash-4.4$ echo $BASH_VERSION
4.4.0(1)-beta
bash-4.4$ echo hello
hello
bash-4.4$ !!
echo hello
hello
bash-4.4$ echo hello
hello
bash-4.4$ echo $(!!)
bash: !!: command not found
bash-4.4$ echo hello
hello
bash-4.4$ echo $(!!TRACE: pid 3822: xparse_dolparen:17: ep[-1] != RPAREN (33), ep = `'
TRACE: pid 3822: xparse_dolparen:17: base[8] != RPAREN (33), base = `echo $(!!'

--
Keith Thompson <Keith.S.Thompson@gmail.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]