delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov> |
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 |
X-Archive: | encrypt |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |