This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug in bash auto-completion (?)


I noticed that, when autocompleting directory names as first thing in the command line, the second directory is seen as an executable.

Example:
suppose I have examples/tictactoe/ttt.exe (which is my case, btw)
(consecutive lines are effect of the line above)

$ exa_<TAB>
$ examples/_
$ examples/tic<TAB>
$ examples/tictactoe _
...and to actually reach ttt.exe I must back-space and then continue
$ examples/tictactoe <BS>/
$ examples/tictactoe/_
$ examples/tictactoe/ttt<TAB>
$ examples/tictactoe/ttt.exe

If same auto-completion is not the first thing on the command line (white space doesn't matter, of course) instead the "correct" behaviour can be seen:

$ insight exa<TAB>
$ insight examples/_
$ insight examples/tic<TAB>
$ insight examples/tictactoe/_
$ insight examples/tictactoe/ttt.<TAB>
$ insight examples/tictactoe/ttt.exe

--
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]