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: <3DEE1305.3090507@mscha.org> Date: Wed, 04 Dec 2002 15:36:53 +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: <20021204060952 DOT 8081 DOT qmail AT web13602 DOT mail DOT yahoo DOT com> In-Reply-To: <20021204060952.8081.qmail@web13602.mail.yahoo.com> 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 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 -- 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/