X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: stupid spaces in environment vars Date: Thu, 08 Feb 2007 11:35:50 -0500 Lines: 17 Message-ID: <88kms217e9imfeblbgurjc4e5c09b6ub2v@4ax.com> References: <45CA8AAF DOT 9050107 AT cygwin DOT com> <533213 DOT 63517 DOT qm AT web58615 DOT mail DOT re3 DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 > BAD: > alias cdp=cd\ "$USERPROFILE" > +alias 'cdp=cd C:\Documents and Settings\me' > > alias cdp="cd $USERPROFILE" > +alias 'cdp=cd C:\Documents and Settings\me' > > GOOD: > alias cdp="cd \"$USERPROFILE\"" > + alias 'cdp=cd "C:\Documents and Settings\me"' > > alias cdp='cd "$USERPROFILE"' > + alias 'cdp=cd "$USERPROFILE"' To avoid one layer of quoting, how about function cdp () { cd "$USERPROFILE"; } -- 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/