From owner-freebsd-doc Mon Jun 10 1: 0:28 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DDA1737B408 for ; Mon, 10 Jun 2002 01:00:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5A807A43210; Mon, 10 Jun 2002 01:00:07 -0700 (PDT) (envelope-from gnats) Received: from abigail.blackend.org (blackend.org [212.11.50.35]) by hub.freebsd.org (Postfix) with ESMTP id DFF1137B403 for ; Mon, 10 Jun 2002 00:55:06 -0700 (PDT) Received: from abigail.blackend.org (localhost [127.0.0.1]) by abigail.blackend.org (8.12.3/8.12.3/ - 15/04/02) with ESMTP id g5A7rMAr059850 for ; Mon, 10 Jun 2002 09:53:22 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.3/8.12.3/Submit) id g5A7rM4H059849; Mon, 10 Jun 2002 09:53:22 +0200 (CEST) (envelope-from marc) Message-Id: <200206100753.g5A7rM4H059849@abigail.blackend.org> Date: Mon, 10 Jun 2002 09:53:22 +0200 (CEST) From: Marc Fonvieille Reply-To: Marc Fonvieille To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/39089: Confusing part about setting/viewing environment vars in section 3.7 of the Handbook Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39089 >Category: docs >Synopsis: Confusing part about setting/viewing environment vars in section 3.7 of the Handbook >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 10 01:00:07 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Marc Fonvieille >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD abigail.blackend.org 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #5: Sun May 12 00:30:43 CEST 2002 marc@abigail.blackend.org:/usr/src/sys/compile/ABIGAIL i386 >Description: Confusing part about setting/viewing environment vars in section 3.7 of the Handbook. Telling that you can use setenv or export to view variables is quite confusing for the *newbie* (the use of echo $VARNAME is described below that part in that section). Read the patch below and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/shells.html for more details. >How-To-Repeat: >Fix: Apply the patch to handbook/basics/chapter.sgml --- chapter.sgml.diff begins here --- --- chapter.sgml.org Mon Jun 10 09:35:06 2002 +++ chapter.sgml Mon Jun 10 09:44:51 2002 @@ -1150,13 +1150,13 @@ Bourne shells - To view or set an environment variable differs somewhat from + To set an environment variable differs somewhat from shell to shell. For example, in the C-Style shells such as tcsh and csh, you would use - setenv to set and view environment variables. + setenv to set environment variables. Under Bourne shells such as sh and - bash, you would use set and - export to view and set your current environment + bash, you would use + export to set your current environment variables. For example, to set or modify the EDITOR environment variable, under csh or tcsh a --- chapter.sgml.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message