Saturday, May 4, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 479  / 3 Years ago, sun, june 13, 2021, 3:12:50

Well...I'm so confused, cause the only real problem in my case is freaking apostrophe (').


Situation: expanding PATH variable influence word completion, based on whether was apostrophes in additional path or not.


Example: I have an exe file (called "deadbeef") with appropriate exe rights, which path contains 2 apostrophes:

/home/mallniya/hard'n'soft/soft/gnu-linux/portable/deadbeef-0.6.0

Specialy for an experiment I put the same file to the

/home/mallniya/hardnsoftaa/soft/gnu-linux/portable/deadbeef-0.6.0

If I export first path to the variable $PATH there will be no autocompletion in bash, but will be in a second case. When I type in terminal first letters of program in exported directory

dead [TAB]

There is no completion in first case, but when I use TAB with the same word in second condition - it works.

But if I type command "deadbeef" in first case manually - it also executes.


Moreover, both which and type commands tells, that exe file is existed in both case.


So what's the problem??? Why bash process the apostrophes like this?


More From » command-line

 Answers
3

Well, as bash_completion team advised, I have reported this behaviour to bash team and their answer is:

"Thanks for the report. This will be fixed in bash-4.3."

looks like the bug is already known and we should just wait.


[#27146] Sunday, June 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
termetalli

Total Points: 326
Total Questions: 127
Total Answers: 110

Location: Sao Tome and Principe
Member since Sat, Sep 12, 2020
4 Years ago
;