From abc@anchorageinternet.org  Fri Sep 27 03:40:49 2002
Return-Path: <abc@anchorageinternet.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6D11437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Sep 2002 03:40:49 -0700 (PDT)
Received: from groggy.anc.acsalaska.net (groggy.anc.acsalaska.net [208.151.119.232])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0B7B543E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Sep 2002 03:40:48 -0700 (PDT)
	(envelope-from abc@anchorageinternet.org)
Received: (from abc@localhost)
	by groggy.anc.acsalaska.net (8.11.6/8.11.6) id g8RBbUk76243
	for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Sep 2002 11:37:30 GMT
	(envelope-from abc@anchorageinternet.org)
Message-Id: <200209271137.g8RBbUk76243@groggy.anc.acsalaska.net>
Date: Fri, 27 Sep 2002 11:37:30 GMT
From: Abc Xyz <abc@anchorageinternet.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: sh parameter expansion bug

>Number:         43413
>Category:       bin
>Synopsis:       sh parameter expansion bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 27 03:50:01 PDT 2002
>Closed-Date:    Tue Mar 25 07:57:09 PST 2003
>Last-Modified:  Tue Mar 25 07:57:09 PST 2003
>Originator:     Abc Xyz
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
none
>Environment:
sh
>Description:
sh "set" doesn't show all shell variables.
>How-To-Repeat:

$ x=123
$ echo $x
123
$ set
[won't show x]

     set [-/+abCEefIimnpTuVvx] [-/+o longname] [-c string] [-- arg ...]
	     The set command performs three different functions:
	     With no arguments, it lists the values of all shell variables.

it appears that if x is set in the current shell,
it should also appear in "set" output.

>Fix:

    dunno.
>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Abc Xyz <abc@anchorageinternet.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/43413: sh parameter expansion bug
Date: Fri, 27 Sep 2002 14:09:44 +0300

 On Fri, Sep 27, 2002 at 11:37:30AM +0000, Abc Xyz wrote:
 > 
 > >Number:         43413
 > >Category:       bin
 > >Synopsis:       sh parameter expansion bug
 > >Originator:     Abc Xyz
 > >Release:        FreeBSD 4.6.2-RELEASE i386
 > >Organization:
 > none
 > >Environment:
 > sh
 > >Description:
 > sh "set" doesn't show all shell variables.
 > >How-To-Repeat:
 > 
 > $ x=123
 > $ echo $x
 > 123
 > $ set
 > [won't show x]
 
 Can you provide the complete output of this 'set' command?  It seems
 to work here, on a 4.7-PRERELEASE:
 
 [roam@straylight:p2 ~]$ sh
 [\u@\h:p2 \w]\$ x=123
 [\u@\h:p2 \w]\$ echo $x
 123
 [\u@\h:p2 \w]\$ set | grep ^x
 x=123
 [\u@\h:p2 \w]\$ exit
 [roam@straylight:p2 ~]$
 
 Can you try one of the FreeBSD 4.7 release candidates, available on
 the FreeBSD FTP and WWW mirrors, and see if you can reproduce
 the problem there?
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 This would easier understand fewer had omitted.
State-Changed-From-To: open->feedback 
State-Changed-By: tjr 
State-Changed-When: Fri Oct 18 04:10:11 PDT 2002 
State-Changed-Why:  
I cannot reproduce this problem. Does it still exist? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43413 
State-Changed-From-To: feedback->closed 
State-Changed-By: keramida 
State-Changed-When: Tue Mar 25 07:56:52 PST 2003 
State-Changed-Why:  
Feedback timeout after 5 months. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43413 
>Unformatted:
 >System: FreeBSD 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #3: Sun Sep 22 04:11:34 AKDT 2002 /usr/src/sys/compile/MYKERN i386
