bash - Cygwin: using a path variable containing a windows path (with a space in it) -


i want add dirs path. unfortunately these dirs located in windows path containing space (like documents , settings)

i've unsuccessfully tried to:

create variable:

43598811@e250bzd20015026 ~ $ winhome="/cygdrive/c/documents\ and\ settings/43598811/"  43598811@e250bzd20015026 ~ $ cd $winhome bash: cd: /cygdrive/c/documents\: no such file or directory      43598811@e250bzd20015026 ~ $ cd "$winhome" bash: cd: /cygdrive/c/documents\ and\ settings/43598811/: no such file or directory 

create alias:

43598811@e250bzd20015026 ~ $ alias winhome="/cygdrive/c/documents\ and\ settings/43598811/"  43598811@e250bzd20015026 ~ $ winhome bash: /cygdrive/c/documents , settings/43598811/: directory  43598811@e250bzd20015026 ~ $ cd winhome bash: cd: winhome: no such file or directory 

use soft link: working... don't want use

any suggestion ?

this works:

$ winhome="/cygdrive/c/documents , settings/" $ cd "$winhome" $ pwd /cygdrive/c/documents , settings 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -