Discussion:
Why ksh?
Rico Secada
2006-07-21 04:53:27 UTC
Permalink
Hi

I don't want to start a religios thread and I don't want general personal opinions :-)

Why has OpenBSD developers decided to run ksh as the default shell and not for example bash or zsh?

The question is being asked because of a debate at our datacenter about the three shells and I would like to understand both the technical reason and the more general one - if posible someone knows and has the time to answer.

Best and kind regards
Rico
Han Boetes
2006-07-21 05:22:50 UTC
Permalink
Post by Rico Secada
I don't want to start a religios thread and I don't want general personal opinions :-)
That's a nice introduction to any flamewar.
Post by Rico Secada
Why has OpenBSD developers decided to run ksh as the default
shell and not for example bash or zsh?
1) Acceptable License.
2) Correct /bin/sh implementation.

See also: http://openbsd.org/goals.html

And since you are completely free to install your favourite shell
if you want to, what's your problem with ksh?



# Han
Nick Guenther
2006-07-21 05:32:49 UTC
Permalink
Post by Han Boetes
1) Acceptable License.
2) Correct /bin/sh implementation.
See also: http://openbsd.org/goals.html
And since you are completely free to install your favourite shell
if you want to, what's your problem with ksh?
Post by Rico Secada
The question is being asked because of a debate at our datacenter about the three shells and I would like to understand both the technical reason and the more general one - if posible someone knows and has the time to answer.
Damien Miller
2006-07-21 05:35:10 UTC
Permalink
Post by Han Boetes
Post by Rico Secada
Why has OpenBSD developers decided to run ksh as the default
shell and not for example bash or zsh?
1) Acceptable License.
2) Correct /bin/sh implementation.
3) *statically* linked ksh is a little over 1/2 the size of *dynamically*
linked bash.

-d
Marco Peereboom
2006-07-21 12:27:03 UTC
Permalink
dd if=/de

hit tab at the end of that command on ksh and then on zsh. Nuff said.

Bash is the size of a house and less than 1% of its functionality is
like, functional.

Jason Wright did the whole world a favor and ported OpenBSD's ksh to
Linux. You can find it at http://www.peereboom.us/ksh_linux.html
I created a cygwin port that is hidden at:
http://www.peereboom.us/ksh_cygwin.html

Hooray for ksh!
Post by Rico Secada
Hi
I don't want to start a religios thread and I don't want general personal opinions :-)
Why has OpenBSD developers decided to run ksh as the default shell and not for example bash or zsh?
The question is being asked because of a debate at our datacenter about the three shells and I would like to understand both the technical reason and the more general one - if posible someone knows and has the time to answer.
Best and kind regards
Rico
Pedro Timóteo
2006-07-21 14:41:07 UTC
Permalink
Speaking of ksh, is there any way to configure it to clear the screen
with CTRL+L, as bash does?

Thanks.
Paul de Weerd
2006-07-21 15:59:10 UTC
Permalink
On Fri, Jul 21, 2006 at 03:41:07PM +0100, Pedro Tim?teo wrote:
| Speaking of ksh, is there any way to configure it to clear the screen
| with CTRL+L, as bash does?

Not again ..

http://marc.theaimsgroup.com/?l=openbsd-misc&m=114885344906668&w=2

Cheers,

Paul 'WEiRD' de Weerd

--
++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/

[demime 1.01d removed an attachment of type application/pgp-signature]
Pedro Timóteo
2006-07-21 16:13:37 UTC
Permalink
Post by Paul de Weerd
| Speaking of ksh, is there any way to configure it to clear the screen
| with CTRL+L, as bash does?
Not again ..
http://marc.theaimsgroup.com/?l=openbsd-misc&m=114885344906668&w=2
Thanks, but all the solutions presented in that thread can't clear the
screen when you're typing something AND keep what you've already typed.

The last suggestion, in
http://marc.theaimsgroup.com/?l=openbsd-misc&m=114891930523651&w=2 ,
works after you've typed something (unlike the previous ones), but what
you have already typed is gone.

In bash, I often type a command, but then think "I want to have all the
xterm for this", so I press CTRL-L and then RETURN.
Stuart Henderson
2006-07-21 16:35:10 UTC
Permalink
Post by Pedro Timóteo
In bash, I often type a command, but then think "I want to have all the
xterm for this", so I press CTRL-L and then RETURN.
alt # (or # does nicely on a uk keyboard)
cls (or clear if you don't . /etc/ksh.kshrc in your profile)
[cursor up twice]

it's probably not as cumbersome as it might first appear...
or, use wmii and just press alt-enter.
Damien Miller
2006-07-22 00:55:03 UTC
Permalink
Post by Pedro Timóteo
Thanks, but all the solutions presented in that thread can't clear the
screen when you're typing something AND keep what you've already typed.
Why don't you add support for ^L yourself then?

-d
Arnaud Bergeron
2006-07-23 14:03:42 UTC
Permalink
Post by Damien Miller
Post by Pedro Timóteo
Thanks, but all the solutions presented in that thread can't clear the
screen when you're typing something AND keep what you've already typed.
Why don't you add support for ^L yourself then?
-d
There's also the point that ksh does not do multi-line commands like
bash does (not a statement of superiority, just a fact) so clearing
the screen to have it all to enter a command is pretty useless.
--
"i think we should rewrite the kernel in java since it has good
support for threads." - Ted Unangst
Jeff Quast
2006-07-23 16:06:48 UTC
Permalink
Post by Arnaud Bergeron
Post by Damien Miller
Post by Pedro Timóteo
Thanks, but all the solutions presented in that thread can't clear the
screen when you're typing something AND keep what you've already typed.
Why don't you add support for ^L yourself then?
-d
There's also the point that ksh does not do multi-line commands like
bash does (not a statement of superiority, just a fact) so clearing
the screen to have it all to enter a command is pretty useless.
sigh... does _nobody_ use vi input mode? you're one letter away in
command mode to bring your entire edit buffer into a full fledged and
very powerful text editor! Multi-line indeed!!

Really, if you're going to use emacs input mode, then you are just
asking for a kludgy, confusing, and feature-limited line editor.
Rogier Krieger
2006-07-23 14:47:47 UTC
Permalink
Post by Pedro Timóteo
In bash, I often type a command, but then think "I want to have all the
xterm for this", so I press CTRL-L and then RETURN.
How about the follwoing: press CTRL+A, prepend "clear; " to your
command line and use CTRL+E to return to where you were editing.

Cheers,

Rogier
--
If you don't know where you're going, any road will get you there.
Samurai Chef
2006-07-21 16:04:12 UTC
Permalink
like the "clear" command?
Post by Pedro Timóteo
Speaking of ksh, is there any way to configure it to clear the screen
with CTRL+L, as bash does?
Thanks.
Prabhu Gurumurthy
2006-07-21 16:01:40 UTC
Permalink
Post by Pedro Timóteo
Speaking of ksh, is there any way to configure it to clear the screen
with CTRL+L, as bash does?
Thanks.
Was in the mailing list before I guess, but you can bind it (being
Ctrl-L) on your .profile or .kshrc,

bind -m '^L'=clear^M
smith
2006-07-22 00:33:33 UTC
Permalink
Post by Pedro Timóteo
Speaking of ksh, is there any way to configure it to clear the
screen with CTRL+L, as bash does?
Thanks.
clear<enter>
Han Boetes
2006-07-21 18:04:19 UTC
Permalink
Post by Marco Peereboom
Jason Wright did the whole world a favor and ported OpenBSD's
ksh to Linux. You can find it at
http://www.peereboom.us/ksh_linux.html I created a cygwin port
that is hidden at: http://www.peereboom.us/ksh_cygwin.html
mksh is a nice port as well. On my Linux desktop I use mksh as
/bin/sh instead of bash. All my systems are bash-free! =)

http://mirbsd.de/mksh/



# Han
Spruell, Darren-Perot
2006-07-21 17:13:05 UTC
Permalink
Post by Pedro Timóteo
Post by Paul de Weerd
Not again ..
http://marc.theaimsgroup.com/?l=openbsd-misc&m=114885344906668&w=2
Thanks, but all the solutions presented in that thread can't
clear the
screen when you're typing something AND keep what you've
already typed.
These threads grow tiresome.

If you want a shell that whistles like bash, and quacks like bash, and is
shiny like bash, then use bash. No one is forcing you to use a certain
shell. Please stop lamenting that something that is not bash is not bash.

It seems clear that the precise functionality you are after isn't
implemented in OpenBSD's ksh. So note it down as a "technical limitation" if
you want and move on with life.

DS
Pedro Timóteo
2006-07-24 11:25:03 UTC
Permalink
Post by Spruell, Darren-Perot
These threads grow tiresome.
If you want a shell that whistles like bash, and quacks like bash, and is
shiny like bash, then use bash. No one is forcing you to use a certain
shell. Please stop lamenting that something that is not bash is not bash.
It seems clear that the precise functionality you are after isn't
implemented in OpenBSD's ksh. So note it down as a "technical limitation" if
you want and move on with life.
Guys, I wasn't whining or complaining. I wasn't even requesting a
feature. I just asked if there was a way to do it. There isn't, so I
"move on with life", like you said.

I guess you've had so many whiners in the past, that you're
oversensitive to them. :)
Eric Furman
2006-07-24 16:32:01 UTC
Permalink
On Mon, 24 Jul 2006 12:25:03 +0100, "Pedro Timsteo"
Post by Pedro Timóteo
Post by Spruell, Darren-Perot
These threads grow tiresome.
If you want a shell that whistles like bash, and quacks like bash, and is
shiny like bash, then use bash. No one is forcing you to use a certain
shell. Please stop lamenting that something that is not bash is not bash.
It seems clear that the precise functionality you are after isn't
implemented in OpenBSD's ksh. So note it down as a "technical limitation" if
you want and move on with life.
Guys, I wasn't whining or complaining. I wasn't even requesting a
feature. I just asked if there was a way to do it. There isn't, so I
"move on with life", like you said.
I guess you've had so many whiners in the past, that you're
oversensitive to them. :)
Yes we are oversensitive about this.
This question comes up all the time.
csh used to be the default shell and thank G. O. D. it was changed.
POSIX 93 ksh with HUGE improvements was ported to OpenBSD.
It was ported to OBSD a while ago.
It kicks bash and zsh's ass all to hell.
any other opinion is just based on ignorance.
Pleaese stop being ignorant and learn.

Lastly; set -o vi
Pleeeeease learn it.
This thread is increadibly tiresome...

(BTW I alias c=clear: much cleaner than bash alternatives)
--
Eric Furman
***@fastmail.net
Nick Shank
2006-07-24 18:04:00 UTC
Permalink
Post by Eric Furman
On Mon, 24 Jul 2006 12:25:03 +0100, "Pedro Timsteo"
Post by Pedro Timóteo
Post by Spruell, Darren-Perot
These threads grow tiresome.
If you want a shell that whistles like bash, and quacks like bash, and is
shiny like bash, then use bash. No one is forcing you to use a certain
shell. Please stop lamenting that something that is not bash is not bash.
It seems clear that the precise functionality you are after isn't
implemented in OpenBSD's ksh. So note it down as a "technical limitation" if
you want and move on with life.
Guys, I wasn't whining or complaining. I wasn't even requesting a
feature. I just asked if there was a way to do it. There isn't, so I
"move on with life", like you said.
I guess you've had so many whiners in the past, that you're
oversensitive to them. :)
Yes we are oversensitive about this.
This question comes up all the time.
csh used to be the default shell and thank G. O. D. it was changed.
POSIX 93 ksh with HUGE improvements was ported to OpenBSD.
It was ported to OBSD a while ago.
It kicks bash and zsh's ass all to hell.
any other opinion is just based on ignorance.
Really now? Hmmm... Where have I heard that before?
Post by Eric Furman
Pleaese stop being ignorant and learn.
Lastly; set -o vi
Pleeeeease learn it.
This thread is increadibly tiresome...
(BTW I alias c=clear: much cleaner than bash alternatives)
Loading...