delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/29/10:44:04

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 29 Sep 2003 10:43:22 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lynn Wilson <lynn AT swcp DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: File name completion on symbolic links
In-Reply-To: <3F7843CF.90703@swcp.com>
Message-ID: <Pine.GSO.4.56.0309291042160.3193@slinky.cs.nyu.edu>
References: <3F7843CF DOT 90703 AT swcp DOT com>
Importance: Normal
MIME-Version: 1.0

On Mon, 29 Sep 2003, Lynn Wilson wrote:

> This is a very minor issue and it may be just a Bash problem, but...
>
> When I use Bash to do file name completion (using Tab) on a DIRECTORY
> that is a symlink I do not get the trailing slash '/'.
>
> If it's a real directory, the TAB results in the completion of the
> directory name with an appended slash.  If it's a symlink, I get the
> directory name but NO slash.
>
> This is the part of my mount table that may be of interest:
>
> c:\program files on /PF type system (binmode)
> C:\cygwin\bin on /usr/bin type system (binmode)
> C:\cygwin\lib on /usr/lib type system (binmode)
> C:\cygwin on / type system (binmode)
> c: on /c type system (binmode)
> d: on /d type system (binmode,noumount)
>
> cd /c
> c> ls -ald Sources Public
> drwxr-xr-x+   4 lrwilso  mkgroup      4096 Aug 13 11:28 public/
> lrwxrwxrwx    1 lrwilso  mkgroup       100 Aug 13 09:52 Sources ->
> /d/Sources
>
>
> ls pub<tab>  yields  "ls public/"
> ls  Sou<tab> yields "ls Sources"
>
> any insight?
>
> Lynn

Lynn,

Put the following in your ~/.inputrc:

set mark-symlinked-directories on

This should do it.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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