Home Explore Blog CI



man-pages

26th chunk of `zip.man`
a07b4c29a258829e47d4cff14f7571910fa4e72cc3d67baa0000000100000fd0
 be seen as corrupt elsewhere.

       -VV
       --VMS-specific
              [VMS]  Save  VMS  file attributes, and  all allocated blocks in a
              file,  including  any  data beyond EOF.  Useful for  moving  ill‐
              formed  files   among   VMS  systems.   When a ‐VV archive is un‐
              packed on a non‐VMS system, almost all files will appear corrupt.

       -w
       --VMS-versions
              [VMS] Append the version number of the files to the name, includ‐
              ing multiple versions of files.  Default is to use only the  most
              recent version of a specified file.

       -ww
       --VMS-dot-versions
              [VMS] Append the version number of the files to the name, includ‐
              ing  multiple  versions of files, using the .nnn format.  Default
              is to use only the most recent version of a specified file.

       -ws
       --wild-stop-dirs
              Wildcards match only at a directory level.  Normally zip  handles
              paths as strings and given the paths

                     /foo/bar/dir/file1.c

                     /foo/bar/file2.c

              an input pattern such as

                     /foo/bar/*

              normally  would  match both paths, the * matching dir/file1.c and
              file2.c.  Note that in the first case a  directory  boundary  (/)
              was  crossed  in the match.  With -ws no directory bounds will be
              included in the match, making wildcards local to a  specific  di‐
              rectory  level.  So, with -ws enabled, only the second path would
              be matched.

              When using -ws, use ** to match across directory boundaries as  *
              does normally.

       -x files
       --exclude files
              Explicitly exclude the specified files, as in:

                     zip ‐r foo foo ‐x \*.o

              which will include the contents of foo in foo.zip while excluding
              all  the  files  that  end in .o.  The backslash avoids the shell
              filename substitution, so that the name matching is performed  by
              zip at all directory levels.

              Also possible:

                     zip ‐r foo foo ‐x@exclude.lst

              which will include the contents of foo in foo.zip while excluding
              all the files that match the patterns in the file exclude.lst.

              The long option forms of the above are

                     zip ‐r foo foo ‐‐exclude \*.o

              and

                     zip ‐r foo foo ‐‐exclude @exclude.lst

              Multiple patterns can be specified, as in:

                     zip ‐r foo foo ‐x \*.o \*.c

              If  there  is no space between -x and the pattern, just one value
              is assumed (no list):

                     zip ‐r foo foo ‐x\*.o

              See ‐i for more on include and exclude.

       -X
       --no-extra
              Do not save extra file attributes (Extended Attributes  on  OS/2,
              uid/gid  and  file  times  on  Unix).   The zip format uses extra
              fields to include additional information for  each  entry.   Some
              extra  fields are specific to particular systems while others are
              applicable to all systems.  Normally when zip reads entries  from
              an  existing  archive, it reads the extra fields it knows, strips
              the rest, and adds the extra fields applicable  to  that  system.
              With  -X, zip strips all old fields and only includes the Unicode
              and Zip64 extra fields (currently these two extra  fields  cannot
              be disabled).

              Negating this option, -X-, includes all the default extra fields,
              but also copies over any unrecognized extra fields.

       -y
       --symlinks
              For  UNIX  and VMS (V8.3 and later), store symbolic links as such
              in the zip archive,

Title: zip Options: -VV (cont.), -w, -ww, -ws, -x, -X, -y
Summary
This section describes further options for zip, beginning with a continuation of '-VV', which is used for saving VMS-specific file attributes. It then details '-w' and '-ww' for appending file version numbers in VMS systems, '-ws' for limiting wildcards to a directory level, '-x' for explicitly excluding files from the zip archive using patterns or a list, '-X' to disable saving extra file attributes, and '-y' to store symbolic links as such in the archive.