pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]

Giorgos Keramidas keramida at ceid.upatras.gr
Sat Dec 15 20:39:06 PST 2007


On 2007-12-15 13:54, Frank Shute <frank at esperance-linux.co.uk> wrote:
>> % keramida at 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
> 
> Wow. My pdksh is much smaller:
> 
> $ ls -ld /usr/local/bin/ksh
> -r-xr-xr-x  1 root  wheel  681584 Jan 23  2007 /usr/local/bin/ksh
> 
> $ pkg_info -W /usr/local/bin/ksh
> /usr/local/bin/ksh was installed by package pdksh-5.2.14p2_2
> 
> It's also statically compiled. I wonder what is bloating yours so
> much. Was it built with debugging code or something?

Yes.  All my ports are build with DEBUG_FLAGS='-g' this time, so it may
be the cause of the pdksh bloat.



More information about the freebsd-questions mailing list