Re: Paths and Cygwin

2006-02-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Igor Peshansky on 2/9/2006 8:51 AM: > >>Input: ./mkdirhier.sh "/home/jgriffin/test/level1/level2" >& out.txt >>[snip] >>Here's the output: >>prefix: / >>mkdir: cannot create directory `//home': No such file or directory > > > None of th

Re: Paths and Cygwin

2006-02-09 Thread Igor Peshansky
On Thu, 9 Feb 2006, jgriffin wrote: (Reordered for more logical flow of the reply). > Why does Cygwin append a extra backslash to the path? Don't you mean "prepend an extra slash"? Backslash is a '\'. Cygwin doesn't -- it's a bug in your script (run it with "bash -x") to confirm. In fact, you

Paths and Cygwin

2006-02-09 Thread jgriffin
I'm trying to run this script: mkdirhier.sh start--- newline=' ' IFS=$newline case ${1--} in -*) echo >&2 "mkdirhier: usage: mkdirhier directory ..."; exit 1 esac status= echo $directory for directory do case $directory in '') echo