From owner-cvs-bin  Sun Dec 22 21:31:52 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id VAA17712
          for cvs-bin-outgoing; Sun, 22 Dec 1996 21:31:52 -0800 (PST)
Received: (from steve@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id VAA17702;
          Sun, 22 Dec 1996 21:31:50 -0800 (PST)
Date: Sun, 22 Dec 1996 21:31:50 -0800 (PST)
From: Steve Price <steve>
Message-Id: <199612230531.VAA17702@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/sh cd.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

steve       96/12/22 21:31:49

  Modified:    bin/sh    cd.c
  Log:
  Don't use _POSIX_PATH_MAX to limit the size of the path, instead
  use 'getcwd(NULL, 0)' just as pwd(1) does.
  
  Suggested by: bde
  
  Revision  Changes    Path
  1.9       +3 -3      src/bin/sh/cd.c

From owner-cvs-bin  Mon Dec 23 08:06:22 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id IAA08752
          for cvs-bin-outgoing; Mon, 23 Dec 1996 08:06:22 -0800 (PST)
Received: from root.com (implode.root.com [198.145.90.17])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA08743;
          Mon, 23 Dec 1996 08:06:17 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id IAA25960; Mon, 23 Dec 1996 08:05:17 -0800 (PST)
Message-Id: <199612231605.IAA25960@root.com>
X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol
To: Steve Price <steve@freefall.freebsd.org>
cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org,
        cvs-bin@freefall.freebsd.org
Subject: Re: cvs commit: src/bin/sh cd.c 
In-reply-to: Your message of "Sun, 22 Dec 1996 21:31:50 PST."
             <199612230531.VAA17702@freefall.freebsd.org> 
From: David Greenman <dg@root.com>
Reply-To: dg@root.com
Date: Mon, 23 Dec 1996 08:05:17 -0800
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

>steve       96/12/22 21:31:49
>
>  Modified:    bin/sh    cd.c
>  Log:
>  Don't use _POSIX_PATH_MAX to limit the size of the path, instead
>  use 'getcwd(NULL, 0)' just as pwd(1) does.

   getcwd() is a rather expensive operation...are you sure you want to do
this?

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

From owner-cvs-bin  Mon Dec 23 08:39:40 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id IAA09477
          for cvs-bin-outgoing; Mon, 23 Dec 1996 08:39:40 -0800 (PST)
Received: from fly.HiWAAY.net (sprice@fly.HiWAAY.net [208.147.154.56])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA09470;
          Mon, 23 Dec 1996 08:39:38 -0800 (PST)
Received: from localhost by fly.HiWAAY.net; (8.8.4/1.1.8.2/21Sep95-1003PM)
	id KAA05323; Mon, 23 Dec 1996 10:39:35 -0600 (CST)
Date: Mon, 23 Dec 1996 10:39:34 -0600 (CST)
From: Steve Price <sprice@hiwaay.net>
To: David Greenman <dg@root.com>
cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org,
        cvs-bin@freefall.freebsd.org
Subject: Re: cvs commit: src/bin/sh cd.c 
In-Reply-To: <199612231605.IAA25960@root.com>
Message-ID: <Pine.OSF.3.94.961223102556.1356A-100000@fly.HiWAAY.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk


On Mon, 23 Dec 1996, David Greenman wrote:

# >steve       96/12/22 21:31:49
# >
# >  Modified:    bin/sh    cd.c
# >  Log:
# >  Don't use _POSIX_PATH_MAX to limit the size of the path, instead
# >  use 'getcwd(NULL, 0)' just as pwd(1) does.
# 
#    getcwd() is a rather expensive operation...are you sure you want to do
# this?
# 

Considering the alternatives (and without actually doing any time
studies), yes I think it ITRTD.  The alternatives (as I see
them) are as follows:

	1) use getcwd(3)
	2) hack together sh(1)'s own version of getcwd()
	3) use the fork/exec/pipe cruft of /bin/pwd that was there

I prefer option #1, since I don't have to reinvent the wheel as
I would have to in option #2.  Option #3 is IMHO wrong since /bin/pwd
essentially calls getcwd(3) and option #1 does this without the
overhead of fork/exec and reading the results from a pipe.  Perhaps
if our version of getcwd(3) is sooooo slow, we should look into
improving it so that all programs that use it can benefit from it. :)

Steve

# -DG
# 
# David Greenman
# Core-team/Principal Architect, The FreeBSD Project
# 


From owner-cvs-bin  Mon Dec 23 14:16:40 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id OAA25848
          for cvs-bin-outgoing; Mon, 23 Dec 1996 14:16:40 -0800 (PST)
Received: (from steve@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id OAA25841;
          Mon, 23 Dec 1996 14:16:38 -0800 (PST)
Date: Mon, 23 Dec 1996 14:16:38 -0800 (PST)
From: Steve Price <steve>
Message-Id: <199612232216.OAA25841@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/sh cd.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

steve       96/12/23 14:16:37

  Modified:    bin/sh    cd.c
  Log:
  Apply a little dab of bit caulk to keep those beggars
  from leaking out.
  
  Noticed by: bde
  
  Revision  Changes    Path
  1.10      +2 -6      src/bin/sh/cd.c

From owner-cvs-bin  Mon Dec 23 14:29:06 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id OAA26364
          for cvs-bin-outgoing; Mon, 23 Dec 1996 14:29:06 -0800 (PST)
Received: (from steve@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id OAA26357;
          Mon, 23 Dec 1996 14:29:04 -0800 (PST)
Date: Mon, 23 Dec 1996 14:29:04 -0800 (PST)
From: Steve Price <steve>
Message-Id: <199612232229.OAA26357@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/sh cd.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

steve       96/12/23 14:29:04

  Modified:    bin/sh    cd.c
  Log:
  Oops, it needs little more caulk to get it right.
  
  Revision  Changes    Path
  1.11      +2 -2      src/bin/sh/cd.c

From owner-cvs-bin  Mon Dec 23 18:24:37 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id SAA04961
          for cvs-bin-outgoing; Mon, 23 Dec 1996 18:24:37 -0800 (PST)
Received: from root.com (implode.root.com [198.145.90.17])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA04956;
          Mon, 23 Dec 1996 18:24:35 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id SAA27050; Mon, 23 Dec 1996 18:23:30 -0800 (PST)
Message-Id: <199612240223.SAA27050@root.com>
X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol
To: Steve Price <sprice@hiwaay.net>
cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org,
        cvs-bin@freefall.freebsd.org
Subject: Re: cvs commit: src/bin/sh cd.c 
In-reply-to: Your message of "Mon, 23 Dec 1996 10:39:34 CST."
             <Pine.OSF.3.94.961223102556.1356A-100000@fly.HiWAAY.net> 
From: David Greenman <dg@root.com>
Reply-To: dg@root.com
Date: Mon, 23 Dec 1996 18:23:30 -0800
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

>On Mon, 23 Dec 1996, David Greenman wrote:
>
># >steve       96/12/22 21:31:49
># >
># >  Modified:    bin/sh    cd.c
># >  Log:
># >  Don't use _POSIX_PATH_MAX to limit the size of the path, instead
># >  use 'getcwd(NULL, 0)' just as pwd(1) does.
># 
>#    getcwd() is a rather expensive operation...are you sure you want to do
># this?
># 
>
>Considering the alternatives (and without actually doing any time
>studies), yes I think it ITRTD.  The alternatives (as I see

   Sorry, I had thought that you were calling getcwd() twice. Now that I have
the changes here, I see that my assumption was wrong. So nevermind...

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project

From owner-cvs-bin  Tue Dec 24 15:59:56 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id PAA12599
          for cvs-bin-outgoing; Tue, 24 Dec 1996 15:59:56 -0800 (PST)
Received: (from steve@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id PAA12589;
          Tue, 24 Dec 1996 15:59:55 -0800 (PST)
Date: Tue, 24 Dec 1996 15:59:55 -0800 (PST)
From: Steve Price <steve>
Message-Id: <199612242359.PAA12589@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/sh trap.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

steve       96/12/24 15:59:54

  Modified:    bin/sh    trap.c
  Log:
  With these changes sh(1)'s trap command should be POSIX-compliant,
  while remaining (becoming :) compatible with other popular shells.
  Specifically these changes include:
  
  1) Implement 'trap -l' to get a list of valid signals names.  This
     is useful if you wanted to do something like reset all signal
     handlers to there defaults values, in which case something like
     this will do the trick.
  
  	trap `trap -l`
  
  2) Reformat the output of 'trap' so it can be saved and later eval'd
     to restore the saved settings.
  
  3) Allow the use of signal names as well as signal numbers.
  
  4) Fix trap handling of SIGCHLD so that commands like the following
     (albeit, contrived) won't cause sh(1) to recurse ad infinitum.
  
  	trap uname 0 20
  
  5) Make variables static that are used only in trap.c.
  
  6) Minor 'style(9) police' mods.
  
  Revision  Changes    Path
  1.6       +107 -49   src/bin/sh/trap.c

From owner-cvs-bin  Tue Dec 24 16:08:14 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id QAA14237
          for cvs-bin-outgoing; Tue, 24 Dec 1996 16:08:14 -0800 (PST)
Received: (from steve@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id QAA14227;
          Tue, 24 Dec 1996 16:08:12 -0800 (PST)
Date: Tue, 24 Dec 1996 16:08:12 -0800 (PST)
From: Steve Price <steve>
Message-Id: <199612250008.QAA14227@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/test test.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

steve       96/12/24 16:08:12

  Modified:    bin/test  test.c
  Log:
  Fix handling of -o and -a operators in the 3 argument case.
  
  Submitted by: Tom Rush <tarush@mindspring.com>
  
  Revision  Changes    Path
  1.15      +2 -2      src/bin/test/test.c

From owner-cvs-bin  Thu Dec 26 10:54:49 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id KAA03146
          for cvs-bin-outgoing; Thu, 26 Dec 1996 10:54:49 -0800 (PST)
Received: (from joerg@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id KAA03139;
          Thu, 26 Dec 1996 10:54:48 -0800 (PST)
Date: Thu, 26 Dec 1996 10:54:48 -0800 (PST)
From: Joerg Wunsch <joerg>
Message-Id: <199612261854.KAA03139@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/test test.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

joerg       96/12/26 10:54:48

  Branch:      bin/test  RELENG_2_2
  Modified:    bin/test  test.c
  Log:
  YAMFC (rev 1.15)
  
  Revision  Changes    Path
  1.13.2.1  +2 -2      src/bin/test/test.c

From owner-cvs-bin  Fri Dec 27 19:46:29 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id TAA25343
          for cvs-bin-outgoing; Fri, 27 Dec 1996 19:46:29 -0800 (PST)
Received: (from ache@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id TAA25336;
          Fri, 27 Dec 1996 19:46:28 -0800 (PST)
Date: Fri, 27 Dec 1996 19:46:28 -0800 (PST)
From: "Andrey A. Chernov" <ache>
Message-Id: <199612280346.TAA25336@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/ls cmp.c
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

ache        96/12/27 19:46:27

  Modified:    bin/ls    cmp.c
  Log:
  Use strcoll instead of strcmp for file names comparation
  
  Should be in 2.2
  
  Revision  Changes    Path
  1.4       +3 -3      src/bin/ls/cmp.c

From owner-cvs-bin  Sat Dec 28 05:31:32 1996
Return-Path: <owner-cvs-bin>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id FAA12078
          for cvs-bin-outgoing; Sat, 28 Dec 1996 05:31:32 -0800 (PST)
Received: (from wosch@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id FAA12071;
          Sat, 28 Dec 1996 05:31:30 -0800 (PST)
Date: Sat, 28 Dec 1996 05:31:30 -0800 (PST)
From: Wolfram Schneider <wosch>
Message-Id: <199612281331.FAA12071@freefall.freebsd.org>
To: CVS-committers, cvs-all, cvs-bin
Subject: cvs commit:  src/bin/test TEST.sh
Sender: owner-cvs-bin@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

wosch       96/12/28 05:31:30

  Modified:    bin/test  TEST.sh
  Log:
  add some string examples, eg. test "" -o ""
  
  Revision  Changes    Path
  1.3       +16 -12    src/bin/test/TEST.sh