Hello Karl, As I wrote, it needs improvement :-)
On Mon, 5 Sep 2011 21:26:20 GMT k...@freefriends.org (Karl Berry) wrote: > 1) That should be > echo '/usr/bin/7z x "$@"' > /usr/bin/unzip > ($@ only has its magical qualities inside "".) Right. > 2) As far as I can tell, there are numerous cmdline and other > differences between p7zip and unzip. If that's so, I think it would > be better just to leave unzip as "command not found" than provide a > radically incompatible replacement. It depends. I think it would be better to give the user a minimalistic unzip that might be incompatible with Info-ZIPs unzip than none at all. However, I created now a script that makes the unzip replacement a little more compatible: #!/bin/bash Opts="" cm="x" while getopts plvtTZ opt do case $opt in p) Opts="$Opts -so";; v|l) cm="l";; t) cm="t";; T|Z) ;; \?)break;; esac done shift $((OPTIND-1)) 7z $cm $Opts "$@" As you see, it now supports Info-ZIPs unzip syntax for listing and testing archives and writing to stdout, -T and -Z are recognized but ignored. But I hope as well, that the issue will be resolved. According to the note in match.c the copyright statement refers to recmatch(), which is part of Info-ZIPs unzip since ages. At http://waterlan.home.xs4all.nl/README.txt I found following note for wcd, which apparently uses recmatch() as well: 2.3 Recmatch I used the regular matching algorithm, recmatch(), of Info-Zip's unzip program. recmatch() was written by Mark Adler. Copyright (C) 1990-1992 Mark Adler, Richard B. Wales, Jean-loup Gailly, Kai Uwe Rommel and Igor Mandrichenko. Mark Adler (original Zip author; UnZip decompression; writer of recmatch() ) and Greg Roelofs (former UnZip maintainer/co-author) have given permission to me to distribute recmatch() (match.c,match.h) under the GNU General Public License conditions as long as there's some sort of comment included that indicates it came from Info-ZIP's UnZip/Zip and was written by Mark Adler. Info-ZIP's home WWW site is at: http://www.info-zip.org/ So it seems we should contact Mark Adler. Regards, Henry