delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/04/09:37:19

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: <3DEE1305.3090507@mscha.org>
Date: Wed, 04 Dec 2002 15:36:53 +0100
From: Michael Schaap <cygwin AT mscha DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1; MultiZilla v1.1.32 final) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bash puzzle: Spaces, environment variables and tab completion
References: <20021204060952 DOT 8081 DOT qmail AT web13602 DOT mail DOT yahoo DOT com>
In-Reply-To: <20021204060952.8081.qmail@web13602.mail.yahoo.com>
X-Virus-Scanned: at mscha.org by amavisd-milter (http://amavis.org/)

On 4-12-2002 7:09, James Shaw wrote:
(...)
> What I want to do is define an environment
> variable so I can easily cd or ls.  E.g.
> % PF="/cygdrive/c/Program Files"
> % cd $PF
> % ls $PF/Games
> % ls $PF/G<tab completion!>
> 
(...)
> 
> So, I ask the list:
>         Can you define $PF so that cd $PF;
>         ls $PF/Games; and ls $PF/G<tab> all work???

I'd do something like:

% ln -s '/cygdrive/c/Program Files' /programs
% PF=/programs

  - Michael


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