X-Spam-Check-By: sourceware.org
Message-ID: <4e41f5c20701111300o5a3035bg338467bfdc67f400@mail.gmail.com>
Date: Thu, 11 Jan 2007 14:00:19 -0700
From: "Morgan Gangwere" <0.fractalus@gmail.com>
To: cygwin@cygwin.com
Subject: Re: dealing with spaces in paths
In-Reply-To: <45A6650D.8010107@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <1278386.c5zxZe01gc@teancum> <45A5AA85.1040204@cygwin.com> 	 <3445035.yTEPPvuVV4@teancum> <45A65607.3030404@cygwin.com> 	 <45A65E18.FB321B08@dessent.net> <45A6650D.8010107@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 1/11/07, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:
> Brian Dessent wrote:
> > "Larry Hall (Cygwin)" wrote:
> >
> >> homedir=`cygpath -w "$USERPROFILE"`
> >> mount -buf "$homedir" "$HOME"/myh
> >>
> >> This is recreated from memory because I don't have access to Cygwin now.
> >> But this is essentially what worked fine for me last night.  Note, the
> >> quote around USERPROFILE is important.
> >
> > How about simply:
> >
> > mount -buf "$(cygpath -w "$USERPROFILE")" "$HOME/myh"
>
> I see no reason that can't work as well.  But I wasn't attempting to
> change the style of the script.  I was just trying to point out why
> what the OP had wouldn't work well in the cases he described.  If the
> one-liner you propose above works for the OP's needs, I'd certainly
> recommend using it. :-)
>
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
> _____________________________________________________________________
>
> A: Yes.
>  > Q: Are you sure?
>  >> A: Because it reverses the logical flow of conversation.
>  >>> Q: Why is top posting annoying in email?
>
> --
> 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/
>
>

on ly machine, cygpath -w "$USERPROFILE it returs this:
$cygpath -w "$USERPROFILE
/cygdrive/c/Documents And Settings/User/
unescaped.

-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

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

