bug-bash
[Top][All Lists]
Advanced

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

"shell-expand-line" wrongly(?) expanded $'foo' to $foo


From: Clark Wang
Subject: "shell-expand-line" wrongly(?) expanded $'foo' to $foo
Date: Wed, 1 Jul 2020 20:48:42 +0800

See the following example (tested with bash 5.0.7):


# bind -q shell-expand-line
shell-expand-line can be invoked via "\e\C-e".

# echo $PWD      # press ESC C-e
# echo /root

# echo $( pwd )  # press ESC C-e
# echo /root

# echo $'foo'    # press ESC C-e
# echo $foo


Is this a bug?

-clark


reply via email to

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