delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/05/10:02:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3E1848DD.9010904@lapo.it>
Date: Sun, 05 Jan 2003 16:01:49 +0100
From: Lapo Luchini <lapo AT lapo DOT it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030102
X-Accept-Language: it, en, fr, es
MIME-Version: 1.0
To: Mailing List: CygWin <cygwin AT cygwin DOT com>
Subject: bug in bash auto-completion (?)
X-Enigmail-Version: 0.71.3.0
X-Enigmail-Supports: pgp-inline, pgp-mime

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 AT lapo DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019