Clarify man page with respect to input and output files, and sync usage
message. Prompted by PR 40063 about the usage message.
This commit is contained in:
parent
7828361bcf
commit
75cd00a06a
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: uuencode.1,v 1.16 2006/09/24 15:56:42 wiz Exp $
|
||||
.\" $NetBSD: uuencode.1,v 1.17 2008/11/29 22:36:13 dholland Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1990, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -39,11 +39,11 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl m
|
||||
.Op Ar file
|
||||
.Ar name
|
||||
.Op Ar inputfile
|
||||
.Ar outputname
|
||||
.Nm uudecode
|
||||
.Op Fl m | Fl p
|
||||
.Op Ar file ...
|
||||
.Op Ar encoded-file ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
and
|
||||
@ -61,14 +61,14 @@ Use base64 encoding.
|
||||
.Pp
|
||||
.Nm
|
||||
reads
|
||||
.Ar file
|
||||
.Ar inputfile
|
||||
(or by default the standard input) and writes an encoded version
|
||||
to the standard output.
|
||||
The encoding uses only printing
|
||||
.Tn ASCII
|
||||
characters and includes the
|
||||
mode of the file and the operand
|
||||
.Ar name
|
||||
.Ar outputname
|
||||
for use by
|
||||
.Nm uudecode .
|
||||
.Pp
|
||||
@ -77,11 +77,13 @@ transforms
|
||||
.Em uuencoded
|
||||
files (or by default, the standard input) into the original form.
|
||||
The resulting file is named
|
||||
.Ar name
|
||||
.Ar outputname
|
||||
as recorded in the encoded file,
|
||||
and will have the mode of the original file except that setuid
|
||||
and execute bits are not retained; if the
|
||||
.Fl p
|
||||
option is specified, the data will be written to the standard output.
|
||||
option is specified, the data will be written to the standard output
|
||||
instead.
|
||||
.Nm uudecode
|
||||
ignores any leading and trailing lines.
|
||||
.Sh EXIT STATUS
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uuencode.c,v 1.13 2008/07/21 14:19:27 lukem Exp $ */
|
||||
/* $NetBSD: uuencode.c,v 1.14 2008/11/29 22:36:13 dholland Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)uuencode.c 8.2 (Berkeley) 4/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: uuencode.c,v 1.13 2008/07/21 14:19:27 lukem Exp $");
|
||||
__RCSID("$NetBSD: uuencode.c,v 1.14 2008/11/29 22:36:13 dholland Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -196,7 +196,7 @@ encode(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr, "usage: %s [-m] [infile] remotefile\n",
|
||||
(void)fprintf(stderr, "usage: %s [-m] [inputfile] outputname\n",
|
||||
getprogname());
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user