[Bash-completion-devel] Bug#775661: [775661] additional info to "odd completion candidates"

lumin cdluminate at gmail.com
Wed Jan 28 01:36:20 UTC 2015


I'm sorry to reply so late.

In fact, these 3 files were generated from one of my python scripts.

-rw-r--r-- 1 x x 201K Jan 18 10:13 linux?.0
-rw-r--r-- 1 x x 113K Jan 18 10:13 linux?.1
-rw-r--r-- 1 x x 151K Jan 18 10:13 linux?.2

And I then found that, the "?" displayed in filename field denotes '\n'.
at the beginning I tried to fix the issue in my script:

f = open (filename.replace('?', ''), 'w+') [0]

but it doesn't work. however another replace action

f = open (filename.replace('\n', ''), 'w+') [1]

really kills that odd character.

thank you,
Ville Skyttä
Peter Cordes
for looking into this issue.

[0] where "filename" is a string object, the method "replace" does
replacement in the string.
[1] means delete all the newline character.
-- 
 .''`.    
: :' :    
`. `'     
  `-      



More information about the Bash-completion-devel mailing list