Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake wrote: >Hongyi Zhao 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)")" Finally, I us

Re: cd to the path including space.

2009-01-08 Thread Christopher Faylor
On Thu, Jan 08, 2009 at 09:57:48PM +, Eric Blake wrote: >Christopher Faylor cygwin.com> writes: > >> >> On Thu, Jan 08, 2009 at 04:46:26PM +, Eric Blake wrote: >> >> findtexmf psfonts_t1.map >> > >> >cd "$(cygpath -u "$(findtexmf psfonts_t1.map)")" >> >> cd "$(cygpath -u '$(findtexmf ps

Re: cd to the path including space.

2009-01-08 Thread Eric Blake
Christopher Faylor cygwin.com> writes: > > On Thu, Jan 08, 2009 at 04:46:26PM +, Eric Blake wrote: > >> findtexmf psfonts_t1.map > > > >cd "$(cygpath -u "$(findtexmf psfonts_t1.map)")" > > cd "$(cygpath -u '$(findtexmf psfonts_t1.map)')" > > will probably work a little better. As Eric kn

Re: cd to the path including space.

2009-01-08 Thread Christopher Faylor
On Thu, Jan 08, 2009 at 04:46:26PM +, Eric Blake wrote: >> findtexmf psfonts_t1.map > >cd "$(cygpath -u "$(findtexmf psfonts_t1.map)")" cd "$(cygpath -u '$(findtexmf psfonts_t1.map)')" will probably work a little better. As Eric knows, you can't nest quotes that way. cgf -- Unsubscribe in

Re: cd to the path including space.

2009-01-08 Thread Hongyi Zhao
On Thu, 8 Jan 2009 16:46:26 + (UTC), Eric Blake wrote: >Hongyi Zhao 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)")" See the follo

Re: cd to the path including space.

2009-01-08 Thread Larry Hall (Cygwin)
On 01/08/2009, Hongyi Zhao wrote: 3- In the cygwin/bash, if the space are included in the path, it will be troublesome. FWIW, this is not specific to Cygwin. You'd see the same problem in Windows using the command prompt. Quoting, as Eric points out, is the solution. -- Larry Hall

cd to the path including space.

2009-01-08 Thread Hongyi Zhao
Hi all, I want to jump to the following path with a cygwin/bash command: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.7\fontconfig\cache In my case, I've the following issues: 1- I only know that use the following command to obtain the the above path's stem: findtexmf psfonts

Re: cd to the path including space.

2009-01-08 Thread Eric Blake
Hongyi Zhao 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 c