From dk@freebeer.jriver.com  Thu Aug  1 14:53:32 1996
Received: from freebeer.jriver.com (freebeer.jriver.com [192.146.151.91])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA01776
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 1 Aug 1996 14:53:30 -0700 (PDT)
Received: (from dk@localhost) by freebeer.jriver.com (8.7.5/8.7.3) id QAA00994; Thu, 1 Aug 1996 16:53:26 -0500 (CDT)
Message-Id: <199608012153.QAA00994@freebeer.jriver.com>
Date: Thu, 1 Aug 1996 16:53:26 -0500 (CDT)
From: Dmitry Kohmanyuk <dk@freebeer.jriver.com>
Reply-To: dk@freebeer.jriver.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: /bin/sh: args not passed in `.' command
X-Send-Pr-Version: 3.2

>Number:         1456
>Category:       bin
>Synopsis:       /bin/sh: args not passed in `.' command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug  1 15:00:03 PDT 1996
>Closed-Date:    Fri Aug 2 08:21:45 MET DST 1996
>Last-Modified:  Fri Aug  2 08:22:53 MET DST 1996
>Originator:     Dmitry Kohmanyuk
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
James River Group, Inc.
>Environment:

FreeBSD 2.1.5-RELEASE

>Description:

	
args in `.' command are not passed

>How-To-Repeat:

here is a sample shell session:

6 dk@fr:p3.3 ~> cat a
#!/bin/sh
. zuka buka
7 dk@fr:p3.3 ~> cat zuka
#!/bin/sh
echo zuka: $1
8 dk@fr:p3.3 ~> sh -x a
+ . zuka buka
+ echo zuka:
zuka:
9 dk@fr:p3.3 ~> ksh -x a
+ . zuka buka
+ echo zuka: buka
zuka: buka

>Fix:
	
	I haven't investigated the source for patch yet.


>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: dk@freebeer.jriver.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1456: /bin/sh: args not passed in `.' command
Date: Fri, 2 Aug 1996 07:43:10 +0200 (MET DST)

 As Dmitry Kohmanyuk wrote:
 
 > >Synopsis:       /bin/sh: args not passed in `.' command
 
 > args in `.' command are not passed
 
 This is a no-bug.  Posix.2 says:
 
  3.14.4  dot - Execute commands in current environment
 
        . file
 
  The shell shall execute commands from the file in the current
  environment.
 
 (NB: no mention about arguments, here's the part of the rationale:)
 
  The KornShell version of dot takes optional arguments that are set to the  1
  positional parameters.  This is a valid extension that allows a dot        1
  script to behave identically to a function.
 
 
 So if someone cares to implement it, we are free to do it, but it's
 not strictly a bug, and your shell programs cannot be considered
 portable if they use this feature.
 
 I tend to move this PR into the `suspended' state, so it could be
 closed in case somebody offers an implementation, but i'm rather
 afraid that nobody will still know the PR by that time.  Right now,
 there are many actual bugs waiting to be fixed, so i would not give
 this any priority.
 
 Probably i will close it, and if somebody feels adventurous to
 implement it, he can submit this as a followup to this PR anyway
 (GNATS will notice it and record it in the PR).
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Aug 2 08:21:45 MET DST 1996 
State-Changed-Why:  
Posix.2 doesn't require the `dot' command to take arguments (though 
it does not forbid it either). 

>Unformatted:
 
