Fwd: [MINC-users] Display + Cygwin
Andrew Janke
Andrew Janke <a.janke@gmail.com>
Thu Mar 10 10:26:04 2005
---------- Forwarded message ----------
From: Andrew Janke <a.janke@gmail.com>
Date: Fri, 11 Mar 2005 01:24:25 +1000
Subject: Re: [MINC-users] Display + Cygwin
To: wimb@drcmr.dk
On Thu, 10 Mar 2005 16:03:08 +0100, William Baaré <wimb@drcmr.dk> wrote:
>
> I just used your binary... it works fine, however, when I want to
> overwrite an earlier saved label volume I get the following error.
>
> ###################################
>
> $ cygdisplay s069.mnc
> Inputting s069.mnc.
> Objects input.
> Enter filename to save: aap.mnc
> File <aap.mnc> exists, do you wish to overwrite (y or n): y
> /bin/cp: cannot create regular file
> `aap.mnc.Thu_Mar_10_15:52:18_2005_.bkp': Inv
> alid argument
> Error copying file aap.mnc to aap.mnc.Thu_Mar_10_15:52:18_2005_.bkp:
> System message: No such file or directory
> Error making backup file for: aap.mnc
Hrm,
I guessing this is to do with the ':' in the filename. The windows
filesystem canna handle this from memory. It treats the colon as a
file separator in a list IIRC.
So I guess this is a bug. The backup filename should really use a '-'
as the date seaparator to be more portable.
The question is has anyone out there written scripts that depend on
Display backup filenames being written in this fashion?
--
Andrew Janke (a.janke@gmail.com || www.cmr.uq.edu.au/~rotor)
Australia->Brisbane H: +61 7 3390 6332 || M: +61 4 2138 8581
--
Andrew Janke (a.janke@gmail.com || www.cmr.uq.edu.au/~rotor)
Australia->Brisbane H: +61 7 3390 6332 || M: +61 4 2138 8581