This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cd to the path including space.
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 8 Jan 2009 16:46:26 +0000 (UTC)
- Subject: Re: cd to the path including space.
- References: <uiacm45co51e8tdbo2e6tnjqf34c7vre0m@4ax.com>
Hongyi Zhao <hongyi.zhao <at> gmail.com> writes:
>
> Hi all,
> 1- I only know that use the following command to obtain the the above
> path's stem:
>
> findtexmf psfonts_t1.map
cd "$(cygpath -u "$(findtexmf psfonts_t1.map)")"
>
> 2- In the cygwin/bash, the path's delimitor is / instead of \.
cygpath takes care of that for you
>
> 3- In the cygwin/bash, if the space are included in the path, it will
> be troublesome.
quoting the cygpath command substitution takes care of that for you
>
> 4- Furthermore, the cygwin use the following path as the initial part
> of its path:
>
> /cygdrive/c/...
cygpath takes care of that for you
--
Eric Blake
--
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/