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