On 3/27/14, 7:11 PM, Uwe Storbeck wrote: > On Mar 27, Chet Ramey wrote: >> Since that line, as you entered it above, is a syntax error, it's not >> clear what bash should do with it (probably nothing). What do you >> expect to happen? > > The same as if you would try to complete any non-existing file > name, nothing? The completion should not append an "a" to the > typed in "a(". Instead the cursor should stay in the same > position (after the parenthesis) and bash should beep.
Yes, if bash can detect a syntax error, that's probably the best thing. > When you try to complete "ls ab" with <TAB> in the same example > with the two files "aa" and "a(" in a directory bash-completion > handles it correctly. It only fails because of the parenthesis > (and maybe also with other special characters). There is virtually nothing common between the two cases other than the fact that they are two-character strings beginning with `a'. This has nothing to do with bash-completion (maybe I should remove the debian bug address from the recipients). Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org