Re: SUMMARY: bar problem with special character file names

From: jimb@silvlis.com
Date: Wed Dec 11 1991 - 20:29:51 CST


I tried to reply direct to the original question without success.

Try unbar'ng the archive without using the Z option,

Then rename all the resulting files, adding the .Z to the end.

Then run uncompress on the files.

An example:

Script started on Wed Dec 11 10:00:00 1991
pogo [1] {~} 10:00am Z% ls -lR test
total 3
drwxrwxr-x 2 jimb 512 Oct 31 13:56 cat.$1
drwxrwxr-x 2 jimb 512 Nov 27 11:23 man.$1
-rw-r--r-- 1 jimb 202 Dec 4 12:39 whatis

test/cat.$1:
total 74
-rw-rw-rw- 1 jimb 1285 Oct 31 13:55 checkmd4.1
-rw-rw-rw- 1 jimb 1942 Oct 31 13:56 hashmd4.1
-rw-rw-rw- 1 jimb 18832 Oct 29 13:50 xbiff++.1

test/man.$1:
total 57
-rw-r--r-- 1 jimb 1024 Oct 31 13:55 checkmd4.1
-rw-r--r-- 1 jimb 1586 Oct 31 13:55 hashmd4.1
-rw-r--r-- 1 jimb 14640 Jul 5 21:01 xbiff++.1
pogo [2] {~} 10:00am Z% bar cZf test.bar test
pogo [3] {~} 10:00am Z% rm -rf test
pogo [4] {~} 10:00am Z% bar xvf test.bar
x test/cat.$1/xbiff++.1, 8047 bytes, 16 tape blocks 1
x test/cat.$1/checkmd4.1, 863 bytes, 2 tape blocks 1
x test/cat.$1/hashmd4.1, 1204 bytes, 3 tape blocks 1
x test/whatis, 174 bytes, 1 tape blocks 1
x test/man.$1/checkmd4.1, 771 bytes, 2 tape blocks 1
x test/man.$1/hashmd4.1, 1065 bytes, 3 tape blocks 1
x test/man.$1/xbiff++.1, 7184 bytes, 15 tape blocks 1
pogo [5] {~} 10:00am Z% ls -lR test
total 3
drwxr-xr-x 2 jimb 512 Oct 31 13:56 cat.$1
drwxr-xr-x 2 jimb 512 Nov 27 11:23 man.$1
-rw-r--r-- 1 jimb 174 Dec 4 12:39 whatis

test/cat.$1:
total 31
-rw-r--r-- 1 jimb 863 Oct 31 13:55 checkmd4.1
-rw-r--r-- 1 jimb 1204 Oct 31 13:56 hashmd4.1
-rw-r--r-- 1 jimb 8047 Oct 29 13:50 xbiff++.1

test/man.$1:
total 30
-rw-r--r-- 1 jimb 771 Oct 31 13:55 checkmd4.1
-rw-r--r-- 1 jimb 1065 Oct 31 13:55 hashmd4.1
-rw-r--r-- 1 jimb 7184 Jul 5 21:01 xbiff++.1
pogo [6] {~} 10:01am Z% cd test/man.\$1
pogo [7] {~/test/man.$1} 10:01am Z% file *
checkmd4.1: compressed data block compressed 16 bits
hashmd4.1: compressed data block compressed 16 bits
xbiff++.1: compressed data block compressed 16 bits
pogo [8] {~/test/man.$1} 10:01am Z% ren '*' '#1.Z'
pogo [9] {~/test/man.$1} 10:01am Z% file *
checkmd4.1.Z: compressed data block compressed 16 bits
hashmd4.1.Z: compressed data block compressed 16 bits
xbiff++.1.Z: compressed data block compressed 16 bits
pogo [10] {~/test/man.$1} 10:01am Z% uncompress *.Z
pogo [11] {~/test/man.$1} 10:01am Z% ls -l
total 57
-rw-r--r-- 1 jimb 1024 Oct 31 13:55 checkmd4.1
-rw-r--r-- 1 jimb 1586 Oct 31 13:55 hashmd4.1
-rw-r--r-- 1 jimb 14640 Jul 5 21:01 xbiff++.1
pogo [12] {~/test/man.$1} 10:01am Z%

script done on Wed Dec 11 10:01:58 1991

On Dec 11, 5:44, Rod Rebello -- CAD Development wrote:
} Subject: SUMMARY: bar problem with special character file names
} Our problem is that we can't unarchive compressed bar files which include
} directory names containing special characters such as '$'.
}
} I got one response which indicated that bar does work properly if you do not
} compress the archive (do not use the -Z option). However, we need to compress
} the files for space reasons, and we already have compressed files which we
} need to recover.
}
} We contacted Sun, and they are sending us a patch for bar which should fix our
} problem. I would be happy to send anyone info on the patch after we receive
} it. Just let me know if you are interested. BTW, this is bar in Sunos
} 4.1.1 on sparc systems.
}
} --
} Rod Rebello
} titan!rrebello@asuvax.eas.asu.edu
} Microchip Technology Inc., Chandler, AZ
}-- End of excerpt from Rod Rebello -- CAD Development

-- 
     __           __
     /  o         /      Jim Budler      jimb@silvlis.com      |  Dodge
    /  /  /\/\   /__    Silvar-Lisco        +1.408.991.6115    | Stealth
/__/  /  /   /  /__/   703 E. Evelyn Ave. Sunnyvale, Ca. 94086 |   !!



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:21 CDT