From owner-freebsd-questions@FreeBSD.ORG Sat Dec 15 02:14:42 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 304EE16A41B for ; Sat, 15 Dec 2007 02:14:42 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9014713C469 for ; Sat, 15 Dec 2007 02:14:41 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup135.ach.sch.gr [81.186.70.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lBF2DwMH012914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 15 Dec 2007 04:14:14 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id lBF2Dr6n002449; Sat, 15 Dec 2007 04:13:53 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id lBF2DnS4002448; Sat, 15 Dec 2007 04:13:49 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 15 Dec 2007 04:13:49 +0200 From: Giorgos Keramidas To: Frank Shute Message-ID: <20071215021349.GF2062@kobe.laptop> References: <20071214010542.GA19553@demeter.hydra> <200712132012.32729.mike.jeays@rogers.com> <20071214211008.GA12935@melon.esperance-linux.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071214211008.GA12935@melon.esperance-linux.co.uk> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.949, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.45, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: Mike Jeays , FreeBSD Questions Subject: 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: Sat, 15 Dec 2007 02:14:42 -0000 On 2007-12-14 21:10, Frank Shute wrote: > I used bash for an interactive shell for about 5 years until I > discovered the goodness of pdksh. About half the size, statically > linked, not full of bugs and better editing features. Plus it's not > GPL. 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$