LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-10-2006, 07:53 AM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 680

Rep: Reputation: Disabled
bash more bloated than ksh?


It is told, especially by *BSD people that bash is more bloated than ksh. I did a ls on both bash and ksh on FC5 and found out that ksh is more bloated than bash.

ls -al /bin/bash
-rwxr-xr-x 1 root root 720888 Feb 11 2006 /bin/bash

ls -al /bin/ksh
-rwxr-xr-x 1 root root 987008 Feb 27 2006 /bin/ksh

Does it mean ksh is more bloated on Linux or am I missing something?
 
Old 10-10-2006, 08:12 AM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
you are judging bloat by filesize?

Just because the binary executable is bigger doesn't mean it is more 'bloated'...

I don't personally use ksh, only bash but it has loads of features i need, loads i don't know about. That is to say more builtins. I would consider these bloat if they were very obscure, quicker to do outside of the shell process and generally not needed. I think bloat is subjective, if you don't need the features, then yes it is.
 
Old 10-10-2006, 08:53 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
It is more bloated, as in.. it has more features and benefits than the korn shell, but then that's really a preference by the end user. Don't listen to BSD users or Linux users or any other user, try it out or read up on it yourself, or use both and you decide. If BSD users told you it's better to jump off a cliff than continue living, would you jump off a cliff? Think for yourself and don't judge something by the size of the file or binary, that means squat, really, it does.
 
Old 10-10-2006, 09:13 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,
and just to show how things can be different...
Code:
xxx@yyy home/xxx > ll /bin/bash
-rwxr-xr-x  1 root root 470K 2004-12-03 19:32 /bin/bash
xxx@yyy home/xxx > ll /bin/ksh
-rwxr-xr-x  1 root root 204K 2004-10-02 04:00 /bin/ksh
xxx@yyy home/xxx > cat /etc/SuSE-release 
SuSE Linux 9.2 (i586)
VERSION = 9.2
choose what is better by yourself.
regards,
slackie1000
 
Old 10-10-2006, 04:58 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,164

Rep: Reputation: 238Reputation: 238Reputation: 238
Be aware that /bin/ksh on Linux is usually not ksh but really pdksh, so one could (wrongly) conclude ksh is bloated ...

Here are some sizes from Centos 3.7:

Code:
bash 2.05b01:  586132
pdksh 5.2.14:  180884
ksh93r      : 1006476
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
It is possible to change ksh script on a SUN into bash richikiki Programming 2 06-20-2006 06:08 AM
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 05:09 AM
bash/ksh variables question tpe Programming 2 08-11-2005 09:39 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 08:28 PM
ksh commands in bash nkelle Linux - General 2 11-13-2003 11:11 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration