Red Hat Bugzilla – Bug 434856
Please add a flag to filter OSX stuff
Last modified: 2008-02-27 03:22:54 EST
OS X created zip files
(for example http://www.greekfontsociety.gr/GFS_NEOHELLENIC_OT.zip) include
Apple-specific metadata in an __MACOSX/ directory. This causes problems for
scripts that do not expect this top-level directory under Linux.
Unfortunately, filtering out unconditionally this directory with -x is not
working nicely either as unzip will complain if you ask it to filter out a
Thus simple scripts that invoked plain unzip now need to test if this directory
is present in an archive, and if yes use -x and if no do normal unzip.
This is getting very user-unfriendly.
Please add a flag to unzip that enables stripping of all OSX specific metadata
no other OS uses when unzipping a file (and is a nooop if this metadata is not
present, ie unzipo succeeds in all cases)
and bug #434850
I think it'd be better if unzip *defaulted* to not extracting the Apple-metadata
when running on non-OSX system where the data is totally useless for 99.99%
users. For the 0.01% that care, add a new flag to request extracting the
The archive you use as an example contains files in GFS_NEOHELLENIC_OT and in
__MACOSX directory so both of them are unpacked by unzip command.
There is no difference between these files for unzip (the only difference is the
directory name). unzip command should not do any automatic censorship in the
archive files and this seems for me to be too specialize case to have a separate
option for it.
Situation should be fixed on the zip side which create this archive and which
attach unwanted __MACOSX zip files here.
Option -x should be used with file name not with directory name so there should
be used option -x __MACOSX/* to eliminate __MACOSX directory.