Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 20:27:37 -0400
From:      "Danny J. Zerkel" <dzerkel@columbus.rr.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/39210: Update usage and manual for env to show that command can take arguments
Message-ID:  <200206122027.37226.dzerkel@columbus.rr.com>

next in thread | raw e-mail | index | archive | help

>Number:         39210
>Category:       bin
>Synopsis:       Update usage and manual for env to show that command can take
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 12 17:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Danny J. Zerkel
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Zerkular Systems
>Environment:
System: FreeBSD zoomer 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Jun 8 14:25:05 
EDT 2002 dzerkel@zoomer:/usr/obj/usr/src/sys/zoomer5 i386


>Description:
	The command option of the env command will accept arguments and pass
	them to the command through exec.  This should be more obvious from
	the usage and manual pages.
>How-To-Repeat:
	man env
>Fix:

--- usr.bin/env/env.c.orig      Tue Jun 11 23:11:08 2002
+++ usr.bin/env/env.c   Tue Jun 11 23:11:27 2002
@@ -92,6 +92,6 @@
 usage()
 {
        (void)fprintf(stderr,
-           "usage: env [-] [-i] [name=value ...] [command]\n");
+           "usage: env [-] [-i] [name=value ...] [command [arg ...]]\n");
        exit(1);
 }
--- usr.bin/printenv/printenv.1.orig    Tue Jun 11 23:01:49 2002
+++ usr.bin/printenv/printenv.1 Tue Jun 11 23:09:30 2002
@@ -47,7 +47,7 @@
 .Op Fl
 .Op Fl i
 .Op Ar name Ns = Ns Ar value ...
-.Op Ar command
+.Op Ar command Op Ar arg ...
 .Sh DESCRIPTION
 The
 .Nm


>Release-Note:
>Audit-Trail:
>Unformatted:
 arguments

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206122027.37226.dzerkel>