SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Old RedHat 7.X unzip-5.42-1.i386.rpm

UNZIPSFX

Section: Misc. Reference Manual Pages (1L)
Updated: 14 January 2001 (v5.42)
Index 

NAME

unzipsfx - self-extracting stub for prepending to ZIP archives 

SYNOPSIS

<name of unzipsfx+archive combo> [-cfptuz[ajnoqsCLV$]][file(s) ... [-x xfile(s) ...]] 

DESCRIPTION

unzipsfx is a modified version of unzip(1L) designed to beprepended to existing ZIP archives in order to form self-extracting archives.Instead of taking its first non-flag argument to be the zipfile(s) to beextracted, unzipsfx seeks itself under the name by which it was invokedand tests or extracts the contents of the appended archive. Because theexecutable stub adds bulk to the archive (the whole purpose of which is tobe as small as possible), a number of the less-vital capabilities in regularunzip have been removed. Among these are the usage (or help) screen,the listing and diagnostic functions (-l and -v), the abilityto decompress older compression formats (the ``reduce,'' ``shrink'' and``implode'' methods), and the ability to extract to a directory other thanthe current one. Decryption is supported as a compile-time option butshould be avoided unless the attached archive contains encrypted files.

Note thatself-extracting archives made with unzipsfx are no more (or less)portable across different operating systems than isthe unzip executable itself. In general a self-extractingarchive made ona particular Unix system, for example, will only self-extract under the sameflavor of Unix. Regular unzip may still be used to extract theembedded archive as with any normal zipfile, although it will generatea harmless warning about extra bytes at the beginning of the zipfile.Despite this, however, the self-extracting archive is technicallynot a valid ZIP archive, and PKUNZIP may be unable to test or extractit. This limitation is due to the simplistic manner in which the archiveis created; the internal directory structure is not updated to reflect theextra bytes prepended to the original zipfile. 

ARGUMENTS

[file(s)]
An optional list of archive members to be processed.Regular expressions (wildcards) similar to those in Unix egrep(1)may be used to match multiple members. These wildcards may contain:
*
matches a sequence of 0 or more characters
?
matches exactly 1 character
[...]
matches any single character found inside the brackets; ranges are specifiedby a beginning character, a hyphen, and an ending character. If an exclamationpoint or a caret (`!' or `^') follows the left bracket, then the range ofcharacters within the brackets is complemented (that is, anything exceptthe characters inside the brackets is considered a match).
(Be sure to quote any character that might otherwise be interpreted ormodified by the operating system, particularly under Unix and VMS.)
[-x xfile(s)]
An optional list of archive members to be excluded from processing.Since wildcard characters match directory separators (`/'), this optionmay be used to exclude any files that are in subdirectories. Forexample, ``foosfx *.[ch] -x */*'' would extract all C source filesin the main directory, but none in any subdirectories. Without the -xoption, all C source files in all directories within the zipfile would beextracted.

If unzipsfx is compiled with SFX_EXDIR defined, the following optionis also enabled:

[-d exdir]
An optional directory to which to extract files. By default, all filesand subdirectories are recreated in the current directory; the -doption allows extraction in an arbitrary directory (always assuming onehas permission to write to the directory). The option and directory maybe concatenated without any white space between them, but note that thismay cause normal shell behavior to be suppressed. In particular,``-d ~'' (tilde) is expanded by Unix C shells into the nameof the user's home directory, but ``-d~'' is treated as aliteral subdirectory ``~'' of the current directory.
 

OPTIONS

unzipsfx supports the following unzip(1L) options: -cand -p (extract to standard output/screen), -f and -u(freshen and update existing files upon extraction), -t (testarchive) and -z (print archive comment). All normal listing options(-l, -v and -Z) have been removed, but the testingoption (-t) may be used as a ``poor man's'' listing. Alternatively,those creating self-extracting archives may wish to include a short listingin the zipfile comment.

See unzip(1L) for a more complete description of these options. 

MODIFIERS

unzipsfx currently supports all unzip(1L) modifiers: -a(convert text files), -n (never overwrite), -o (overwritewithout prompting), -q (operate quietly), -C (match namescase-insenstively), -L (convert uppercase-OS names to lowercase),-j (junk paths) and -V (retain version numbers); plus thefollowing operating-system specific options: -X (restore VMSowner/protection info), -s (convert spaces in filenames to underscores[DOS, OS/2, NT]) and -$ (restore volume label [DOS, OS/2, NT, Amiga]).

(Support for regular ASCII text-conversion may be removed in future versions,since it is simple enough for the archive's creator to ensure that textfiles have the appropriate format for the local OS. EBCDIC conversion willof course continue to be supported since the zipfile format implies ASCIIstorage of text files.)

See unzip(1L) for a more complete description of these modifiers. 

ENVIRONMENT OPTIONS

unzipsfx uses the same environment variables as unzip(1L) does,although this is likely to be an issue only for the person creating andtesting the self-extracting archive. See unzip(1L) for details. 

DECRYPTION

Decryption is supported exactly as in unzip(1L); that is, interactivelywith a non-echoing prompt for the password(s). See unzip(1L) fordetails. Once again, note that if the archive has no encrypted files thereis no reason to use a version of unzipsfx with decryption support;that only adds to the size of the archive. 

EXAMPLES

To create a self-extracting archive letters from a regular zipfileletters.zip and change the new archive's permissions to beworld-executable under Unix:

To create the same archive under MS-DOS, OS/2 or NT (note the use of the/b [binary] option to the copy command):

Under VMS:

(The VMS append command may also be used. The second command installsthe new program as a ``foreign command'' capable of taking arguments. Thethird line assumes that Zip is already installed as a foreign command.)Under AmigaDOS:

(MakeSFX is included with the UnZip source distribution and with Amigabinary distributions. ``zip -A'' doesn't work on Amiga self-extractingarchives.)To test (or list) the newly created self-extracting archive:

To test letters quietly, printing only a summary message indicatingwhether the archive is OK or not:

To extract the complete contents into the current directory, recreating allfiles and subdirectories as necessary:

To extract all *.txt files (in Unix quote the `*'):

To extract everything except the *.txt files:

To extract only the README file to standard output (the screen):

To print only the zipfile comment:

 

LIMITATIONS

The principle and fundamental limitation of unzipsfx is that it isnot portable across architectures or operating systems, and thereforeneither are the resulting archives. For some architectures there islimited portability, however (e.g., between some flavors of Intel-based Unix).

Another problem with the current implementation is that any archivewith ``junk'' prepended to the beginning technically is no longer a zipfile(unless zip(1) is used to adjust the zipfile offsets appropriately,as noted above). unzip(1) takes note of the prepended bytesand ignores them since some file-transfer protocols, notably MacBinary, arealso known to prepend junk. But PKWARE's archiver suite may not be able todeal with the modified archive unless its offsets have been adjusted.

unzipsfx has no knowledge of the user's PATH, so in general an archivemust either be in the current directory when it is invoked, or else a fullor relative path must be given. If a user attempts to extract the archivefrom a directory in the PATH other than the current one, unzipsfx willprint a warning to the effect, ``can't find myself.'' This is always trueunder Unix and may be true in some cases under MS-DOS, depending on thecompiler used (Microsoft C fully qualifies the program name, but othercompilers may not). Under OS/2 and NT there are operating-system callsavailable that provide the full path name, so the archive may be invokedfrom anywhere in the user's path. The situation is not known for AmigaDOS,Atari TOS, MacOS, etc.

As noted above, a number of the normal unzip(1L) functions havebeen removed in order to make unzipsfx smaller: usage and diagnosticinfo, listing functions and extraction to other directories. Also, onlystored and deflated files are supported. The latter limitation is mainlyrelevant to those who create SFX archives, however.

VMS users must know how to set up self-extracting archives as foreigncommands in order to use any of unzipsfx's options. This is notnecessary for simple extraction, but the command to do so then becomes,e.g., ``run letters'' (to continue the examples given above).

unzipsfx on the Amiga requires the use of a special program, MakeSFX,in order to create working self-extracting archives; simple concatenationdoes not work. (For technically oriented users, the attached archive isdefined as a ``debug hunk.'') There may be compatibility problems betweenthe ROM levels of older Amigas and newer ones.

All current bugs in unzip(1L) exist in unzipsfx as well. 

DIAGNOSTICS

unzipsfx's exit status (error level) is identical to that ofunzip(1L); see the corresponding man page. 

SEE ALSO

funzip(1L), unzip(1L), zip(1L), zipcloak(1L),zipgrep(1L), zipinfo(1L), zipnote(1L), zipsplit(1L) 

URL

The Info-ZIP home page is currently athttp://www.info-zip.org/pub/infozip/orftp://ftp.info-zip.org/pub/infozip/ . 

AUTHORS

Greg Roelofs was responsible for the basic modifications to UnZip necessaryto create UnZipSFX. See unzip(1L) for the current list of Zip-Bugsauthors, or the file CONTRIBS in the UnZip source distribution for thefull list of Info-ZIP contributors.


 

Index

NAME
SYNOPSIS
DESCRIPTION
ARGUMENTS
OPTIONS
MODIFIERS
ENVIRONMENT OPTIONS
DECRYPTION
EXAMPLES
LIMITATIONS
DIAGNOSTICS
SEE ALSO
URL
AUTHORS

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector