| @@ -14,91 +14,89 @@ | | | @@ -14,91 +14,89 @@ |
14 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | | 14 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
15 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 15 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 16 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
17 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | | 17 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
18 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 18 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
19 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 19 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
20 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 20 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
21 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 21 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
22 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 22 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
23 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 23 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
24 | .\" SUCH DAMAGE. | | 24 | .\" SUCH DAMAGE. |
25 | .\" | | 25 | .\" |
26 | .\" $FreeBSD: revision 180125$ | | 26 | .\" $FreeBSD: revision 180125$ |
27 | .\" $NetBSD: unzip.1,v 1.1 2009/06/25 20:27:05 joerg Exp $ | | 27 | .\" $NetBSD: unzip.1,v 1.2 2009/06/26 09:31:04 wiz Exp $ |
28 | .\" | | 28 | .\" |
29 | .Dd June 30, 2008 | | 29 | .Dd June 30, 2008 |
30 | .Dt UNZIP 1 | | 30 | .Dt UNZIP 1 |
31 | .Os | | 31 | .Os |
32 | .Sh NAME | | 32 | .Sh NAME |
33 | .Nm unzip | | 33 | .Nm unzip |
34 | .Nd extract files from a ZIP archive | | 34 | .Nd extract files from a ZIP archive |
35 | .Sh SYNOPSIS | | 35 | .Sh SYNOPSIS |
36 | .Nm | | 36 | .Nm |
37 | .Op Fl afjLlnoqtu | | 37 | .Op Fl afjLlnoqtu |
38 | .Op Fl d Ar dir | | 38 | .Op Fl d Ar dir |
39 | .Op Fl x Ar pattern | | 39 | .Op Fl x Ar pattern |
40 | .Ar zipfile | | 40 | .Ar zipfile |
41 | .Sh DESCRIPTION | | 41 | .Sh DESCRIPTION |
42 | .\" ... | | | |
43 | .Pp | | | |
44 | The following options are available: | | 42 | The following options are available: |
45 | .Bl -tag -width Fl | | 43 | .Bl -tag -width Fl |
46 | .It Fl a | | 44 | .It Fl a |
47 | When extracting a text file, convert DOS-style line endings to | | 45 | When extracting a text file, convert DOS-style line endings to |
48 | Unix-style line endings. | | 46 | Unix-style line endings. |
49 | .It Fl d Ar dir | | 47 | .It Fl d Ar dir |
50 | Extract files into the specified directory rather than the current | | 48 | Extract files into the specified directory rather than the current |
51 | directory. | | 49 | directory. |
52 | .It Fl f | | 50 | .It Fl f |
53 | Update existing. | | 51 | Update existing. |
54 | Extract only files from the zipfile, if a file with the same name | | 52 | Extract only files from the zipfile if a file with the same name |
55 | already exists on disk and is older than the former. | | 53 | already exists on disk and is older than the former. |
56 | Otherwise, the file is silently skipped. | | 54 | Otherwise, the file is silently skipped. |
57 | .It Fl j | | 55 | .It Fl j |
58 | Ignore directories stored in the zipfile; instead, extract all files | | 56 | Ignore directories stored in the zipfile; instead, extract all files |
59 | directly into the extraction directory. | | 57 | directly into the extraction directory. |
60 | .It Fl L | | 58 | .It Fl L |
61 | Convert the names of the extracted files and directories to lowercase. | | 59 | Convert the names of the extracted files and directories to lowercase. |
62 | .It Fl l | | 60 | .It Fl l |
63 | List, rather than extract, the contents of the zipfile. | | 61 | List, rather than extract, the contents of the zipfile. |
64 | .It Fl n | | 62 | .It Fl n |
65 | No overwrite. | | 63 | No overwrite. |
66 | When extacting a file from the zipfile, if a file with the same name | | 64 | When extracting a file from the zipfile, if a file with the same name |
67 | already exists on disk, the file is silently skipped. | | 65 | already exists on disk, the file is silently skipped. |
68 | .It Fl o | | 66 | .It Fl o |
69 | Overwrite. | | 67 | Overwrite. |
70 | When extacting a file from the zipfile, if a file with the same name | | 68 | When extacting a file from the zipfile, if a file with the same name |
71 | already exists on disk, the existing file is replaced with the file | | 69 | already exists on disk, the existing file is replaced with the file |
72 | from the zipfile. | | 70 | from the zipfile. |
73 | .It Fl q | | 71 | .It Fl q |
74 | Quiet: print less information while extracting. | | 72 | Quiet: print less information while extracting. |
75 | .It Fl t | | 73 | .It Fl t |
76 | Test: do not extract anything, but verify the checksum of every file | | 74 | Test: do not extract anything, but verify the checksum of every file |
77 | in the archive. | | 75 | in the archive. |
78 | .It Fl u | | 76 | .It Fl u |
79 | Update. | | 77 | Update. |
80 | When extracting a file from the zipfile, if a file with the same name | | 78 | When extracting a file from the zipfile, if a file with the same name |
81 | already exists on disk, the existing file is replaced with the file | | 79 | already exists on disk, the existing file is replaced with the file |
82 | from the zipfile if and only if the latter is newer than the former. | | 80 | from the zipfile if and only if the latter is newer than the former. |
83 | Otherwise, the file is silently skipped. | | 81 | Otherwise, the file is silently skipped. |
84 | .It Fl x Ar pattern | | 82 | .It Fl x Ar pattern |
85 | Exclude files matching the pattern | | 83 | Exclude files matching the pattern |
86 | .Ar pattern . | | 84 | .Ar pattern . |
87 | .El | | 85 | .El |
88 | .Pp | | 86 | .Pp |
89 | Note that only one of | | 87 | Note that only one of |
90 | .Fl n , | | 88 | .Fl n , |
91 | .Fl o | | 89 | .Fl o , |
92 | and | | 90 | and |
93 | .Fl u | | 91 | .Fl u |
94 | may be specified. | | 92 | may be specified. |
95 | .Sh ENVIRONMENT | | 93 | .Sh ENVIRONMENT |
96 | If the | | 94 | If the |
97 | .Ev UNZIP_DEBUG | | 95 | .Ev UNZIP_DEBUG |
98 | environment variable is defined, the | | 96 | environment variable is defined, the |
99 | .Fl q | | 97 | .Fl q |
100 | command-line option has no effect, and additional debugging | | 98 | command-line option has no effect, and additional debugging |
101 | information will be printed to | | 99 | information will be printed to |
102 | .Va stderr . | | 100 | .Va stderr . |
103 | .Sh COMPATIBILITY | | 101 | .Sh COMPATIBILITY |
104 | The | | 102 | The |
| @@ -127,42 +125,42 @@ utility. | | | @@ -127,42 +125,42 @@ utility. |
127 | Instead, the | | 125 | Instead, the |
128 | .Nm | | 126 | .Nm |
129 | utility will assume that a file is a text file if no non-ASCII | | 127 | utility will assume that a file is a text file if no non-ASCII |
130 | characters are present within the first block of data decompressed for | | 128 | characters are present within the first block of data decompressed for |
131 | that file. | | 129 | that file. |
132 | If non-ASCII characters appear in subsequent blocks of data, a warning | | 130 | If non-ASCII characters appear in subsequent blocks of data, a warning |
133 | will be issued. | | 131 | will be issued. |
134 | .Pp | | 132 | .Pp |
135 | The | | 133 | The |
136 | .Nm | | 134 | .Nm |
137 | utility is only able to process ZIP archives handled by | | 135 | utility is only able to process ZIP archives handled by |
138 | .Xr libarchive 3 . | | 136 | .Xr libarchive 3 . |
139 | Depending on the installed version of | | 137 | Depending on the installed version of |
140 | .Xr libarchive , | | 138 | .Xr libarchive 3 , |
141 | this may or may not include self-extracting archives. | | 139 | this may or may not include self-extracting archives. |
142 | .Sh BUGS | | | |
143 | The | | | |
144 | .Nm | | | |
145 | utility currently does not support asking the user whether to | | | |
146 | overwrite or skip a file that already exists on disk. | | | |
147 | To be on the safe side, it will fail if it encounters a file that | | | |
148 | already exists and neither the | | | |
149 | .Fl n | | | |
150 | nor the | | | |
151 | .Fl o | | | |
152 | command line option was specified. | | | |
153 | .Sh SEE ALSO | | 140 | .Sh SEE ALSO |
154 | .Xr libarchive 3 | | 141 | .Xr libarchive 3 |
155 | .Sh HISTORY | | 142 | .Sh HISTORY |
156 | The | | 143 | The |
157 | .Nm | | 144 | .Nm |
158 | utility appeared in | | 145 | utility appeared in |
159 | .Nx 6.0 . | | 146 | .Nx 6.0 . |
160 | .Sh AUTHORS | | 147 | .Sh AUTHORS |
161 | The | | 148 | The |
162 | .Nm | | 149 | .Nm |
163 | utility and this manual page were written by | | 150 | utility and this manual page were written by |
164 | .An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org . | | 151 | .An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org . |
165 | It uses the | | 152 | It uses the |
166 | .Xr archive 3 | | 153 | .Xr archive 3 |
167 | library developed by | | 154 | library developed by |
168 | .An Tim Kientzle Aq kientzle@FreeBSD.org . | | 155 | .An Tim Kientzle Aq kientzle@FreeBSD.org . |
| | | 156 | .Sh BUGS |
| | | 157 | The |
| | | 158 | .Nm |
| | | 159 | utility currently does not support asking the user whether to |
| | | 160 | overwrite or skip a file that already exists on disk. |
| | | 161 | To be on the safe side, it will fail if it encounters a file that |
| | | 162 | already exists and neither the |
| | | 163 | .Fl n |
| | | 164 | nor the |
| | | 165 | .Fl o |
| | | 166 | command line option was specified. |