This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B19: * expansion problem in bash?
- To: gnu-win32 at cygnus dot com
- Subject: B19: * expansion problem in bash?
- From: Robert Lister <listerr at mail dot mclaren dot co dot uk>
- Date: Sat, 09 May 1998 21:44:56 +0100
- Organization: McLaren International Ltd
Having just upgraded tp B19 (it rocks, the job control is much better!)
I am trying to use tar to, well, tar a directory containing some
6,066 files.
- From bash: tar -cf March-1998.tar *
Tar happily starts doing tar-like things, but eventaully stops with
something like this:
tar: Cannot add file ./Mar-1998/34E152: No such file or directory
tar: Error exit delayed from previous errors
It's obvious that "./Mar-1998/34E152" is a partial filename.
(they all end in .TCP or .CCM)
Could it be that bash is truncating the command passed to tar, expanding
tar -cf March-1998.tar * to mean:
tar -cf March-1998.tar <every single filename......>
- Running the same tar command from NT's CMD.exe shell works okay (from
the same
directory, since it doesn't understand "\"
So it isn't a problem with tar itself, but just with the line is it
being
called with.
Any ideas, or is it something I'm missing?