[darcs-devel] darcs patch: fix bug in diff when no temp dir
exists (and 1 more)
Thomas Schwinge
schwinge-darcs-devel at nic-nac-project.de
Sat Dec 4 05:55:10 PST 2004
On Fri, Dec 03, 2004 at 09:59:54AM -0700, Will wrote:
> Thomas Schwinge <schwinge-darcs-devel at nic-nac-project.de> writes:
>
> > On Fri, Dec 03, 2004 at 01:04:29AM -0500, Will wrote:
> >> Thu Dec 2 22:45:29 MST 2004 Will <will at glozer.net>
> >> * pass --force-local to tar when filename has colon
> >
> > Won't running 'tar ... -f ./FILE:NAME ...' solve this problem portably?
> > I doubt that '--force-local' is available with every version of tar.
> > Or do we already rely on GNU tar?
>
> Looks like GNU tar will still treat it as remote:
>
> sh-2.05b$ tar cvf ./foo:bar.gz *.txt
> rcmd: getaddrinfo: No address associated with nodename
> tar: ./foo\:bar.gz: Cannot open: (null)
> tar: Error is not recoverable: exiting now
I just checked:
It doesn't work with GNU tar-1.13.25, but does work with version 1.14.
#v+
thomas at bobby:~/tmp > : > tmp
thomas at bobby:~/tmp > /package/misc/spf/tar-1.13.25/bin/tar cvf ./foo:bar tmp
/package/misc/spf/tar-1.13.25/bin/tar: ./foo\:bar: Cannot open: Input/output error
/package/misc/spf/tar-1.13.25/bin/tar: Error is not recoverable: exiting now
thomas at bobby:~/tmp > /package/misc/spf/tar-1.14/bin/tar cvf ./foo:bar tmp
tmp
#v-
Regards,
Thomas
More information about the darcs-devel
mailing list