summaryrefslogtreecommitdiff
path: root/usr.bin/uuencode
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-11-29 22:36:13 +0000
committerdholland <dholland@NetBSD.org>2008-11-29 22:36:13 +0000
commit75cd00a06a06bcbc2ca4d69fa78cc6b2da3a80d9 (patch)
tree141d2984254f7cba52ad1b639143cc854ab6f07c /usr.bin/uuencode
parent7828361bcf2a179feab66f58be556ce7828db831 (diff)
Clarify man page with respect to input and output files, and sync usage
message. Prompted by PR 40063 about the usage message.
Diffstat (limited to 'usr.bin/uuencode')
-rw-r--r--usr.bin/uuencode/uuencode.118
-rw-r--r--usr.bin/uuencode/uuencode.c6
2 files changed, 13 insertions, 11 deletions
diff --git a/usr.bin/uuencode/uuencode.1 b/usr.bin/uuencode/uuencode.1
index 34b25d1e8de..69b73cf6774 100644
--- a/usr.bin/uuencode/uuencode.1
+++ b/usr.bin/uuencode/uuencode.1
@@ -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
diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c
index 4068d2d5a23..a12b44f9b8d 100644
--- a/usr.bin/uuencode/uuencode.c
+++ b/usr.bin/uuencode/uuencode.c
@@ -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);
}