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
Post a Comment