[Top][All Lists]

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

wrong backtick escaping on autocomplete

From: Igor Bogomazov
Subject: wrong backtick escaping on autocomplete
Date: Sat, 9 May 2015 08:13:01 +0300

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


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


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

the expected behavior is protecting backticks with backslashes

Sincerely yours,

Igor Bogomazov
Saint-Petersburg, Russia

reply via email to

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