From owner-cvs-bin Sat Dec 21 05:22:00 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA09770 for cvs-bin-outgoing; Sat, 21 Dec 1996 05:22:00 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA09763; Sat, 21 Dec 1996 05:21:59 -0800 (PST) Date: Sat, 21 Dec 1996 05:21:59 -0800 (PST) From: Steve Price Message-Id: <199612211321.FAA09763@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh options.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk steve 96/12/21 05:21:58 Modified: bin/sh options.c Log: Fix a problem caused by finger failure on my part. The builtin getopts should now work as expected. This fix was in the NetBSD code that I was merging from but missed getting into FreeBSD's version because of 'drain bamage' on my part. Submitted by: NetBSD, joerg Revision Changes Path 1.10 +7 -3 src/bin/sh/options.c From owner-cvs-bin Sat Dec 21 06:57:43 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA11667 for cvs-bin-outgoing; Sat, 21 Dec 1996 06:57:43 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA11660; Sat, 21 Dec 1996 06:57:40 -0800 (PST) Date: Sat, 21 Dec 1996 06:57:40 -0800 (PST) From: Steve Price Message-Id: <199612211457.GAA11660@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh arith_lex.l Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk steve 96/12/21 06:57:40 Modified: bin/sh arith_lex.l Log: Remove extra #undef. Revision Changes Path 1.7 +1 -2 src/bin/sh/arith_lex.l From owner-cvs-bin Sat Dec 21 07:16:36 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA12720 for cvs-bin-outgoing; Sat, 21 Dec 1996 07:16:36 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA12712; Sat, 21 Dec 1996 07:16:34 -0800 (PST) Date: Sat, 21 Dec 1996 07:16:34 -0800 (PST) From: Steve Price Message-Id: <199612211516.HAA12712@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh expand.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk steve 96/12/21 07:16:33 Modified: bin/sh expand.c Log: This doesn't change any behavior, but may be a slight optimization. (num-- > 0) --> (--num >= 0). Obtained from: NetBSD Revision Changes Path 1.13 +2 -2 src/bin/sh/expand.c From owner-cvs-bin Sat Dec 21 13:10:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA29897 for cvs-bin-outgoing; Sat, 21 Dec 1996 13:10:29 -0800 (PST) Received: (from joerg@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA29890; Sat, 21 Dec 1996 13:10:27 -0800 (PST) Date: Sat, 21 Dec 1996 13:10:27 -0800 (PST) From: Joerg Wunsch Message-Id: <199612212110.NAA29890@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh options.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/12/21 13:10:27 Branch: bin/sh RELENG_2_2 Modified: bin/sh options.c Log: Fix a bug i've introduced in rev 1.4 of options.c. A missing trailing `foo' in `-b foo' caused an access to never-never-land. (The version in -current is changed, so this fix is not applicable there but only in the 2.2 branch.) Revision Changes Path 1.8.2.1 +2 -1 src/bin/sh/options.c From owner-cvs-bin Sat Dec 21 14:09:44 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04020 for cvs-bin-outgoing; Sat, 21 Dec 1996 14:09:44 -0800 (PST) Received: (from steve@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04013; Sat, 21 Dec 1996 14:09:42 -0800 (PST) Date: Sat, 21 Dec 1996 14:09:42 -0800 (PST) From: Steve Price Message-Id: <199612212209.OAA04013@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin Subject: cvs commit: src/bin/sh cd.c cd.h main.c shell.h Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk steve 96/12/21 14:09:41 Modified: bin/sh cd.c cd.h main.c shell.h Log: Make sh(1) a little braver in the face of adversity. sh(1) now handles the getpwd() init problem the same way as bash and ksh do. Also while I was in here, I cleaned up the format a little, removed some unnnecessary #if SYMLINKS cruft, and changed the pwd builtin to use getcwd(3) as Joerg suggested. Revision Changes Path 1.8 +16 -163 src/bin/sh/cd.c 1.2 +1 -1 src/bin/sh/cd.h 1.11 +3 -2 src/bin/sh/main.c 1.8 +1 -3 src/bin/sh/shell.h From owner-cvs-bin Sat Dec 21 14:14:30 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04291 for cvs-bin-outgoing; Sat, 21 Dec 1996 14:14:30 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA04239; Sat, 21 Dec 1996 14:13:44 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA15633; Sat, 21 Dec 1996 23:13:19 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA13881; Sat, 21 Dec 1996 23:13:18 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id WAA13633; Sat, 21 Dec 1996 22:57:37 +0100 (MET) From: J Wunsch Message-Id: <199612212157.WAA13633@uriah.heep.sax.de> Subject: Re: cvs commit: src/bin/sh options.c To: joerg@freefall.freebsd.org (Joerg Wunsch) Date: Sat, 21 Dec 1996 22:57:37 +0100 (MET) Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-bin@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612212110.NAA29890@freefall.freebsd.org> from Joerg Wunsch at "Dec 21, 96 01:10:27 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Joerg Wunsch wrote: > Branch: bin/sh RELENG_2_2 > Modified: bin/sh options.c > Log: > Fix a bug i've introduced in rev 1.4 of options.c. A missing trailing > `foo' in `-b foo' caused an access to never-never-land. ^^^^^^ Errm. Try again: A missing trailing `foo' where `-b foo' has been expected... -- 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. ;-)