delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/20/19:07:28

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: robert_neville310 AT yahoo DOT com
Subject: Re: Tab Completion and Typical Behavior
Date: Tue, 20 Mar 2007 17:06:20 -0700
Lines: 26
Message-ID: <m3t003hg9bsst7tfn7ktm7lvacaqaf90im@4ax.com>
References: <f8utv294jjjninbskuj5csfh2kq0hag8d6 AT 4ax DOT com> <etotnn$75r$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Tue, 20 Mar 2007 10:13:59 -0500, Matthew Woehlke
<mw_triad AT users DOT sourceforge DOT net> wrote:

>robert_neville310 AT yahoo DOT com wrote:
>> I have a question about tab completion in the console window. The
>> .bash_profile exports the right paths and the console performs tab
>> completion. My scripts can be found in ~/bin. I can tab out
>> myscript.sh, but can not tab complete ./myscript.sh; or sh
>> myscript.sh. Is this behavior normal? Can I change the console
>> behavior to tab out ./myscript.sh?
>
>...are you in ~/bin when you try to tab-complete ./myscript.sh? If you 
 Script lives in /home/username/bin/myscript.sh

~/bin $ ./myscript<tab completes>
~ $ ~/bin/myscript<tab completes>
~ $ .~/bin/myscript<DOES NOT complete>

#Without using the complete -c sh
~ $ sh myscript<DOES NOT complete>

cygdrive/g/ $ ./myscript<DOES NOT complete>
cygdrive/g/ $ ~/bin/myscript<tab completes>

>are in ~, then the path would be bin/myscript.sh, not ./myscript.sh. 
>(Does trying to complete the full path (~/bin/myscript.sh) work?)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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