On Fri, Jul 06, 2012 at 04:59:25AM -0400,
http://ospf-ripe.livejournal.com/ via RT wrote:
Show quoted text> Queue: Archive-Extract
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=78201 >
>
> > A::E relies on INFO-Zip unzip's -Z switch for getting a list of the
> > files contained in the archive (unzip -Z -1 <archive>)
> >
>
> unzip -Z -1 works under FreeBSD.
>
> x0083:~> uname -srp
> FreeBSD 8.3-STABLE-20120615 amd64
> x0083:~> /usr/bin/unzip -Z -1 /usr/local/lib/python2.6/test/zipdir.zip
> a/
> a/b/
> a/b/c
>
> ----
>
> Anyway /usr/bin/unzip is better than nothing.
>
> If boot /usr/local/bin/zip and /usr/bin/unzip than /usr/local/bin/zip
> can be preferred over /usr/bin.
If it supports -Z it is INFO-Zip's unzip and FreeBSD do not ship that as
/usr/bin/unzip
The one they do ship only appeared as /usr/bin/unzip with 9.0 (despite what
'man unzip' reports).
$ which unzip
/usr/bin/unzip
$ unzip -Z -1
unzip: illegal option -- Z
usage: unzip [-aCcfjLlnopqtuv] [-d dir] [-x pattern] zipfile
$ /usr/local/bin/unzip -Z -1
ZipInfo 3.00 of 20 April 2009, by Greg Roelofs and the Info-ZIP group.
List name, date/time, attribute, size, compression method, etc., about files
in list (excluding those in xlist) contained in the specified .zip archive(s).
"file[.zip]" may be a wildcard name containing *, ?, [] (e.g., "[a-j]*.zip").
usage: zipinfo [-12smlvChMtTz] file[.zip] [list...] [-x xlist...]
or: unzip -Z [-12smlvChMtTz] file[.zip] [list...] [-x xlist...]
main listing-format options: -s short Unix "ls -l" format (def.)
-1 filenames ONLY, one per line -m medium Unix "ls -l" format
-2 just filenames but allow -h/-t/-z -l long Unix "ls -l" format
-v verbose, multi-page format
miscellaneous options:
-h print header line -t print totals for listed files or for all
-z print zipfile comment -T print file times in sortable decimal format
-C be case-insensitive -M page output through built-in "more"
-x exclude filenames that follow from listing
$ uname -a
FreeBSD <censored> 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
--
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================