Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <3DEE2CD9.4040506@mscha.org> Date: Wed, 04 Dec 2002 17:27:05 +0100 From: Michael Schaap 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: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: at mscha.org by amavisd-milter (http://amavis.org/) On 4-12-2002 17:17, Igor Pechtchanski wrote: > On Wed, 4 Dec 2002, Michael Schaap wrote: > > >>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 >>> >>(...) >> >>>So, I ask the list: >>> Can you define $PF so that cd $PF; >>> ls $PF/Games; and ls $PF/G all work??? >> >>I'd do something like: >> >>% ln -s '/cygdrive/c/Program Files' /programs >>% PF=/programs >> >> - Michael > > > $ mount 'c:\Program Files' /programs > > Igor Yep, that's even better. But, I believe, in order to get TAB completion to work, you need to do: $ mkdir /programs $ mount '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/