From owner-freebsd-questions@FreeBSD.ORG Tue Dec 18 04:19:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37BD316A418 for ; Tue, 18 Dec 2007 04:19:31 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from straycat.dhs.org (c-24-60-173-77.hsd1.ma.comcast.net [24.60.173.77]) by mx1.freebsd.org (Postfix) with ESMTP id A0E8413C459 for ; Tue, 18 Dec 2007 04:19:30 +0000 (UTC) (envelope-from tmclaugh@sdf.lonestar.org) Received: from [192.168.1.118] (tomcat.straycat.dhs.org [192.168.1.118]) by straycat.dhs.org (8.14.1/8.14.1) with ESMTP id lBI4JPS2027159; Mon, 17 Dec 2007 23:19:25 -0500 (EST) From: Tom McLaughlin To: Frank Shute In-Reply-To: <20071217193812.GB29097@melon.esperance-linux.co.uk> References: <20071214010542.GA19553@demeter.hydra> <200712132012.32729.mike.jeays@rogers.com> <20071214211008.GA12935@melon.esperance-linux.co.uk> <20071215021349.GF2062@kobe.laptop> <1197850883.4230.3.camel@tomcat.straycat.dhs.org> <20071217193812.GB29097@melon.esperance-linux.co.uk> Content-Type: text/plain Date: Mon, 17 Dec 2007 23:19:24 -0500 Message-Id: <1197951564.22313.9.camel@tomcat.straycat.dhs.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit Cc: Giorgos Keramidas , FreeBSD Questions Subject: Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 04:19:31 -0000 On Mon, 2007-12-17 at 19:38 +0000, Frank Shute wrote: > On Sun, Dec 16, 2007 at 07:21:23PM -0500, Tom McLaughlin wrote: > > > > On Sat, 2007-12-15 at 04:13 +0200, Giorgos Keramidas wrote: > > > > > > Hi Frank, > > > > > > Now that you mention pdksh, have you tried mksh (in Ports too)? > > > > > > I've installed it and successfully run moderately large ksh scripts > > > (like the webrev(1) utility of OpenSolaris), and it is about an order of > > > magnitude smaller than pdksh here: > > > > > > % keramida@kobe:/usr/local/bin$ ls -ld mksh bash ksh > > > % -rwxr-xr-x 1 root wheel - 684699 Dec 9 19:51 bash > > > % -r-xr-xr-x 1 root wheel - 2390645 Aug 31 17:07 ksh > > > % -r-xr-xr-x 1 root wheel - 236202 Dec 9 18:34 mksh > > > % keramida@kobe:/usr/local/bin$ ldd mksh bash ksh > > > % mksh: > > > % libc.so.7 => /lib/libc.so.7 (0x280ae000) > > > % bash: > > > % libncurses.so.7 => /lib/libncurses.so.7 (0x28101000) > > > % libintl.so.8 => /usr/local/lib/libintl.so.8 (0x28144000) > > > % libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28156000) > > > % libc.so.7 => /lib/libc.so.7 (0x2824b000) > > > % ldd: ksh: not a dynamic executable > > > % keramida@kobe:/usr/local/bin$ > > > > > > > I've maintained a port of OpenBSD's pdksh for some time but I've never > > committed it. Think of pdksh but still actively maintained. > > > > http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar > > > > [tom@releng-7-fbsd tom]$ ls -al /usr/local/bin/ksh > > -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* > > > > tom > > I always assumed that the pdksh in ports had the OpenBSD patches in > it. > > I've downloaded the shell archive and I'll build it. > > Any chance that you will commit this in the future? I'd almost > certainly use it. > > Thanks for your work & time, it's much appreciated! > > Regards, > Its always been a personal use thing but I'll look at adding it. I already checked on the name over on an OpenBSD list and no one cared. If anyone wants to autoconf it that would be really sweet. There's a patch version that works on Linux but both that release and this one require bmake. tom -- | tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org | | FreeBSD http://www.FreeBSD.org |