On Sun, Dec 16, 2007 at 11:34:50PM -0500, Tom McLaughlin wrote: >On Sun, 2007-12-16 at 22:26 -0500, Chuck Robey wrote: >> Tom McLaughlin wrote: >> >> 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: >> >> >> >> % [EMAIL PROTECTED]:/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 >> >> % [EMAIL PROTECTED]:/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 >> >> % [EMAIL PROTECTED]:/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 >> > >> > [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh >> > -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* >> >> If you're familiar with pdksh, are you also familiar with ksh93, which >> is (I believe) Mr. Korn's own shell? If you are, I would be interessted >> in your opinion of the two, any comparisons you might give. > >I've never used ksh93 so I really can't say. There is a NOTES file >included with pdksh which gives a starter. I created this port a few >years ago because of some random issue I've long since forgotten with >pdksh on my FreeBSD box which didn't happen on my OpenBSD box. > >tom
I never used pdksh, but am using ksh93 for quite a while now and have used bash, too. For some reason i like it better than bash, the vi mode is a bit better somehow, it feels alot sturdier. It doesn't have those special variables like $! and !! i believe, but it has alot of neat features like basic network programming, lots of parameter expansion stuff and is just a very nice shell :) -jurjen _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"