Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by narn.NetBSD.org (Postfix) with ESMTP id 147D763BD2D for ; Sun, 23 Nov 2008 03:26:16 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 0) id C096163B1B5; Sun, 23 Nov 2008 03:26:15 +0000 (UTC) Received: from cvs.netbsd.org (unknown [IPv6:2001:4f8:4:7:2e0:81ff:fe25:eab4]) by mail.netbsd.org (Postfix) with ESMTP id 500C463B177 for ; Sun, 23 Nov 2008 03:26:14 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 32DA6175D0; Sun, 23 Nov 2008 03:26:14 +0000 (UTC) From: "Jeremy C. Reed" Subject: CVS commit: pkgsrc/shells/osh To: pkgsrc-changes@NetBSD.org Reply-To: reed@netbsd.org Message-Id: <20081123032614.32DA6175D0@cvs.netbsd.org> Date: Sun, 23 Nov 2008 03:26:14 +0000 (UTC) Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes Precedence: list Module Name: pkgsrc Committed By: reed Date: Sun Nov 23 03:26:14 UTC 2008 Modified Files: pkgsrc/shells/osh: DESCR Makefile PLIST distinfo Log Message: Update shells/osh Add new maintainer. Thank you J.A. The following is from PR #40006: I would like to maintain this package if that is acceptable. Thus, I added myself as MAINTAINER. Changed files: DESCR, Makefile, PLIST, distinfo Changes between osh-20080629 and osh-20081122 which affect the osh package on the various pkgsrc platforms are described below. ------------------------------------------------------------------------ [osh-20081122]: mkconfig: * Added a case for DragonFly BSD (uname -s == DragonFly). osh.c: * Fixed a bug introduced in osh-20061230 where the shell incorrectly handles an unescaped terminating backslash (\) character at the end of string when the shell is invoked as `osh -c string'. In this case, the terminating backslash causes the shell to incorrectly read from the standard input at the end of string. For example: % osh -c 'echo Hello\' to\ you! Hello to you! This example should instead do nothing and exit w/ a zero status. For `osh -c string', an unescaped terminating backslash should effectively turn string into a no-op. Now, it behaves as expected. ------------------------------------------------------------------------ [osh-20081026]: Makefile: * Changed the "oshall" target to only build osh since the fd2, goto, and if utilities are now built into the shell. * Changed the "install-oshall" target to only install osh and its manual pages. This includes the fd2.1, goto.1, and if.1 manual pages since they are not fully documented elsewhere. osh.c: * Renamed cmd_index() to cmd_lookup(), and changed the algorithm from a linear search to a binary search. * Added a base reallocation multiplier to glob() to reduce the number of realloc()s required for very large argument vectors while allowing the first malloc() to be a relatively small allocation for up to 126 matching file-name arguments. util.c: * This is a new file for the integrated shell utilities. * Added a new `-e' command-line option to fd2 to simplify redirecting all conventional output to the standard error as diagnostic output. * Integrated the external `fd2', `goto', and `if' shell utilities as special built-in commands to improve shell performance. Also, added `echo' as a special built-in command. Osh executes each of these built-ins in a subshell. Consequently, the I/O for each can be redirected as before, and the argument list for each can be the result of a call to glob() as before. To generate a diff of this commit: cvs rdiff -r1.2 -r1.3 pkgsrc/shells/osh/DESCR cvs rdiff -r1.21 -r1.22 pkgsrc/shells/osh/Makefile cvs rdiff -r1.6 -r1.7 pkgsrc/shells/osh/PLIST cvs rdiff -r1.11 -r1.12 pkgsrc/shells/osh/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.