bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-tar] Filenames with spaces not handled properly


From: Terry Moore
Subject: RE: [Bug-tar] Filenames with spaces not handled properly
Date: Wed, 26 Jan 2011 09:26:53 -0700

Paul,
  Thank you for the suggestion.  My mind had not thought of such a thing.  I 
thought that with the operating system not treating spaces as argument 
separators, that gtar would follow suit.  I was wrong. 
  I tried the --no-unqoute option to gtar and it did not work.  Here is the 
command line I used:

tapesrvr1 root [1]:/home/prs/cleanup/mem_arc/tarspace.new > 
/home/prs/cleanup/mem_arc/tarspace.log 2>&1 

And the contents of tarspace.new

#!/usr/bin/ksh
# save the Internal Field Separator
echo "Beginning gtar @ \c ";date
OIFS=$IFS
# change it to just newline so spaces will be ignored
IFS="
"
echo "$IFS" |od -b

/usr/sfw/bin/gtar -C / -c -v -f /dev/rmt/foxc \
       -T /home/prs/cleanup/mem_arc/tar2tape.list \
       --no-unquote 

# put the IFS back to what it should be
IFS=$OIFS
echo "gtar of older mem_arc? files complete @ \c";date


And the log to go with it, edited for brevity and proprietary information:

head tarspace.log
Beginning gtar @ Wed Jan 26 08:39:03 MST 2011
0000000 012 012
0000002
./files2taroff2tape.txt
./mem_arc1/XXxx/orig/THT130I.zip
./mem_arc1/XXxx/orig/banana.txt.gz
./mem_arc1/XXxx/orig/orange.txt..gz
...
/usr/sfw/bin/gtar: ./mem_arc1/XxXx/orig/peach1 Data File.zip : Cannot stat: No 
such file or directory
/usr/sfw/bin/gtar: ./mem_archive1/XxXx/orig/peach2 Data File.zip : Cannot stat: 
No such file or directory
...
/usr/sfw/bin/gtar: ./mem_arc1/AAAx/orig/"Fig 12345-48.CSV": Cannot stat: No 
such file or directory
...
/usr/sfw/bin/gtar: "./mem_arc1/AAAx/orig/peach Data.csv": Cannot stat: No such 
file or directory
...

   The file names are, of course, much longer than shown here.  The -T file has 
over 8500 filenames in it.  As you can see, I tried bracketing the filename and 
the entire path in quotes.  It didn't help.  
   I appreciate the time and the kind reply.  Thank You!
                         Terry

-----Original Message-----
From: Paul Eggert [mailto:address@hidden 
Sent: Wednesday, January 26, 2011 1:31 AM
To: Terry Moore
Cc: address@hidden
Subject: Re: [Bug-tar] Filenames with spaces not handled properly

It looks like you need to use the --no-unquote option.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]