Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 1996 23:00:03 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: bin/1456: /bin/sh: args not passed in `.' command
Message-ID:  <199608020600.XAA21734@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1456; it has been noted by GNATS.

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. ;-)



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