This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cd to the path including space.


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]