SYNOPSIS
unpack file ...
DESCRIPTION
unpack uncompresses argument files compressed by pack, using a Huffman minimal redundancy code. By default, unpack looks for file with a .z extension. It places the decompressed output in a file with the same name, but without the .z extension. The times of last access and last modification are preserved.
Packed files can be identified by file. Packed text files can be viewed without being unpacked in place using pcat.
unpack doesn't unpack a file if: the input file cannot be opened; a file already exists with same name as the output file; the output file can't be created; if the input file doesn't appear to have been created by pack.
FILES
- pk$*
-
temporary copy of input file. (You may see this in the current directory if unpack is interrupted.)
- Note:
-
This is now located in the same directory as the file being unpacked; in previous releases of PTC MKS Toolkit it was stored in the directory indicated by TMPDIR. The new approach eliminates some size problems when TMPDIR is on a RAM disk and substantially improves performance in most cases.
DIAGNOSTICS
Possible exit status values are:
- 0
-
Successful completion.
- n
-
Indicates that n files could not be unpacked properly. For example, if three out of six files could not be unpacked properly, the exit status is 3.
Possible reasons for failure include:
- — unknown command line option
- — error creating a name for a temporary file
- — error opening an input file or a temporary file
- — error writing to a temporary file
- — inability to rename a temporary file
- — inability to restore the modification time on a packed file
- — input file was not packed
- — a packed file is corrupt
Messages
- file: Not a packed file
-
The file was not processed by pack. In this case, the file is not changed.
Other messages about inaccessibility of files and so on, are self-explanatory.
PORTABILITY
x/OPEN Portability Guide 4.0. UNIX System V. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
Any file packed on a Windows system can be unpacked on any supported operating system, and vice-versa.
AVAILABILITY
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Miscellaneous:
- envvar
MKS Toolkit Backup and Tape Handling Solutions Guide
PTC MKS Toolkit 10.4 Documentation Build 39.