GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)

interactive bash can escape one backtick properly, but not
if there are two backticks in a path

preparations:

$ mkdir /tmp/back\`tick
$ touch /tmp/back\`tick/back\`tick

then:

1. type in "stat /tmp/back" and press <Tab>
2. a correct path is autocompleted as: "stat /tmp/back\`tick/"
3. press <Tab> one more time
4. an invalid path appears on the command line:
"stat /tmp/back`tick/back`tick"

notice that backslash removed when the second backtick appeared in a
path

the expected behavior is protecting backticks with backslashes

-- 
Sincerely yours,

Igor Bogomazov
Saint-Petersburg, Russia


Reply via email to