delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44C6C0B6.9050206@tlinx.org> |
Date: | Tue, 25 Jul 2006 18:09:10 -0700 |
From: | Linda Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird 1.5.0.4 (Windows/20060516) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | tar, win-path conversion bug |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
I think I've run into a bug concerning "tar" and the use of windows format paths. It's not a bug that is difficult to work around, but it still seems as though it is a bug that someone may wish to address (in their spare time, of course :-). I wanted to save a list of files into a tar archive where the list was created by a windows-based utility that generated windows-style pathnames. Just to see if it was "supported" at all, I decided to try it with 1 file first, before attempting the whole archive. Created file /tmp/tst that contained 1 filename: c:\WINDOWS\msagent\chars\brocklee.acs My command line was: tar cvpf /tmp/tst.tar -T /tmp/tst --ignore-case --no-recursion My output was: tar: Removing leading `c:\' from member names tar: c\:\\WINDOWS\\msagent\\chars\brocklee.acs: Cannot stat: No such file or directory tar: Substituting `.' for empty member name tar: : Cannot stat: No such file or directory tar: Error exit delayed from previous errors ---- ls gives: > ls -lGg C:\\Windows\\msagent\\chars\\brocklee.acs -rw-r----- 1 3614596 Jul 5 2002 C:\Windows\msagent\chars\brocklee.acs Note in "tar", the backslash before the filename wasn't doubled as were the other backslashes: tar: c\:\\WINDOWS\\msagent\\chars\brocklee.acs ^^ If I edit the input file and add an extra "backslash" before the filename, like: c:\WINDOWS\msagent\chars\\brocklee.acs ^ extra backslash Then tar "works". Easy workaround is to convert the paths to unix-type paths. -linda -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |