[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: mkdir -p fails for drive specifiers.
From: |
Jan Hoogma |
Subject: |
RE: mkdir -p fails for drive specifiers. |
Date: |
Tue, 7 Aug 2001 12:17:51 +0200 |
full workaround in a script.
# While the -p option fails due to
confuse drive with directory "//D/" must be replaced by "/cygdrive/D/"
sed_script='s/^\/\//\/cygdrive\//g'
sed_result=`echo "$locfldr_adlfile"
| sed -e "$sed_script"`
`mkdir -p "$sed_result"`
> -----Original Message-----
> From: Jan Hoogma
> Sent: Tuesday, August 07, 2001 11:54
> To: 'address@hidden'
> Subject: RE: mkdir -p fails for drive specifiers.
>
> Correct unix stylish workaround solution that works is:
>
> $ mkdir -p "/cygdrive/D/Projects/aaa/bbb/ccc"
>
> Greetings,
> Jan
>
>
> -----Original Message-----
> From: Jan Hoogma
> Sent: Tuesday, August 07, 2001 11:48
> To: 'address@hidden'
> Subject: mkdir -p fails for drive specifiers.
>
> Bug report:
>
> The -p option for mkdir fails.
> Caused while the drive is treated as path.
>
> The Cygwin that I use is:
> $ uname -a
> CYGWIN_NT-4.0 8003CKP90924 1.3.2(0.39/3/2) 2001-05-20 23:28 i686
> unknown
>
>
> Bug replay:
>
> $ cd //D/Projects
>
> The following command fails:
> $ mkdir -p "//D/Projects/aaa/bbb/ccc"
>
> The following command works (replaced unix"//D" by dos stylish "D:"
> )
> $ mkdir -p "D:/Projects/aaa/bbb/ccc"
>
> Greetings,
> Jan Hoogma
>
>