From owner-freebsd-bugs Wed Jun 12 17:30:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 434D537B40F for ; Wed, 12 Jun 2002 17:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5D0U2R52629; Wed, 12 Jun 2002 17:30:02 -0700 (PDT) (envelope-from gnats) Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 5942437B403 for ; Wed, 12 Jun 2002 17:27:13 -0700 (PDT) Received: from zoomer (dzerkel@dhcp065-024-166-103.columbus.rr.com [65.24.166.103]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g5D0RB508232 for ; Wed, 12 Jun 2002 20:27:11 -0400 (EDT) Message-Id: <200206122027.37226.dzerkel@columbus.rr.com> Date: Wed, 12 Jun 2002 20:27:37 -0400 From: "Danny J. Zerkel" To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/39210: Update usage and manual for env to show that command can take arguments Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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