Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16507

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

From Clark Wang <dearvoid@gmail.com>
Newsgroups gnu.bash.bug
Subject "shell-expand-line" wrongly(?) expanded $'foo' to $foo
Date 2020-07-01 20:48 +0800
Message-ID <mailman.755.1593607763.2574.bug-bash@gnu.org> (permalink)
References <CADv8-ojoKwZknUW1CrppEBBz+-zE8P3QxxzuzmM3qLyYenxcMA@mail.gmail.com>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

"shell-expand-line" wrongly(?) expanded $'foo' to $foo Clark Wang <dearvoid@gmail.com> - 2020-07-01 20:48 +0800

csiph-web