Contributed by grey on from the orphaned discussions dept.
A bit of searching through mailing list archives reveals previous discussions of the licensing, and the lack of desire to replace pdksh in the base. That said, a few individuals appeared to be interested in creating their own port for OpenBSD several years back. While Charles' question as to why ksh93 isn't in the base of OpenBSD is obviously answered already, perhaps undeadly readers might be able to help by pointing him in the direction of anyone who might have a working port they use?
(Comments are closed)
By Chavdar Ivanov (82.37.76.200) ci@spidersweb.co.uk on
Comments
By tedu (128.12.75.69) on
Comments
By mirabile (2001:6f8:94d:1::1) on
By Chavdar Ivanov (82.37.76.200) ci@spidersweb.co.uk on
By Anonymous Coward (138.88.243.5) on
Comments
By tedu (128.12.75.69) on
Comments
By Anonymous Coward (151.200.236.27) on
By mirabile (2001:6f8:94d:1::1) on
Comments
By Anonymous Coward (151.200.236.27) on
By Anonymous Coward (142.166.109.218) on
Actually, I always thought much the same about bash. It uses an ungodly amount of memory while offering little more than the the pd korn shell that comes with OpenBSD. As distributed with OBSD, ksh is pretty nice. Linux migrants to OpenBSD only feel they much install bash because ... well ... they just don't know any better 8P
Comments
By Anonymous Coward (151.200.236.27) on
By Anonymous Coward (138.88.101.218) on
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
699 ardvark 8 0 1724K 1156K wait 0:00 0.00% 0.00% sh
845 ardvark 8 0 1288K 1160K wait 0:00 0.00% 0.00% bash
843 ardvark 8 0 2512K 1896K wait 0:00 0.00% 0.00% ksh93
Comments
By mirabile (194.8.207.18) on
Comments
By Anonymous Coward (138.88.213.94) on
By Anonymous Coward (131.202.171.91) on
29450 fluffy 18 0 372K 312K sleep pause 0:00 0.00% ksh
By krh (207.75.181.241) on
Comments
By Anonymous Coward (138.88.101.218) on
By tedu (128.12.75.69) on
By chas (12.217.90.112) on rhadmin.org
1. I don't need anybody to compile ksh93 for me. "LDFLAGS=-s\ -static CCFLAGS=-O2 bin/package make ksh" seems to work pretty well, although production users might want to disable the experimental features.
2. Who said anything about replacing pdksh? Korn has not made ksh88 available; therefore, pdksh would be better under low memory situations, and is preferable from a historical perspective. Including both pdksh and ksh93 in the base OS is still less space than Bash (and more power).
3. Yes, the ports version of ksh was removed. What exactly is objectionable?
Comments
By tedu (128.12.75.69) on
"Remove the ast-ksh port. Restrictive, inscrutable license; weird build system; code doesn't inspire confidence; mostly broken."
By Anonymous Coward (206.171.8.191) on
Comments
By Anonymous Coward (206.171.8.191) on
Comments
By Anonymous Coward (2001:6f8:94d:1:2c0:9fff:fe1a:6a01) on
By Anonymous Coward (4.61.192.159) on
By RC (4.61.192.159) on
Comments
By Anonymous Coward (151.200.236.27) on
for ((blah; blah; blah)) -- I have to agree with you there. The syntax doesn't win any points for elegance either.
${a:3:2} -- Yes, this is useful, flexible functionality. Unlike ${foo%somesuffix_that_got_up_mr_bournes_nose} and some of the lesser known find primaries like "-filenamedfred". Should more regex support be in a shell? Not if it doubles the size of the program, no.
associative arrays--If just about everything starts off as a string in a shell and associative arrays aren't much harder to implement correctly than plain old numerical ones ( $yerstring[$i] -- what happens if i="notanumber"? ), then why not go for it?
bloat issue -- Are you worried about redundant code filling up your otherwise empty swap space? Stop worrying. No one runs Version 6 anymore. Will stacks and heaps explode? Doubt it. Will your hard drive and the filesystem get a rest at the expense of a little more memory usage outside of the kernel? Very probably.
Comments
By RC (4.61.196.211) on
What is wrong with that? It's not as if it puts extra work on the shell-script-writer.
| bloat issue -- Are you worried about redundant code filling up your
| otherwise empty swap space? Stop worrying. No one runs Version 6
| anymore. Will stacks and heaps explode? Doubt it. Will your hard drive
| and the filesystem get a rest at the expense of a little more memory
| usage outside of the kernel? Very probably.
You make the same mistake several times, in thinking that I listed system requirements as a draw-back. I did not. I primarily listed cross-platform compatibility.
Even if these features were great and incredible, you can hardly expect every other OS on the planet to adopt ksh93, and include it in the base. I know I hate comming across bash-specific shell-scripts, and I'm not willing to release more incompatible scripts upon the world myself.
Man, I really hate the HTML-only requirement here on undeadly. Why shouldn't plain-text formatting work? Really now...
Comments
By Anonymous Coward (138.88.213.94) on
Hello? 1993 was ten years ago! Who is using shell scripts from 10 years ago (much less machines that are that old), and why is it so difficult for them to change a stupid shell script? Show me a system that you can't port ksh93 to, and I'll show a rubbish tip where you can get it off your hands for 5 bucks.
Comments
By Jeffrey (206.148.108.209) on http://jneitzel.sdf1.org/osh/
Well, I have always liked pdksh.
It is a very nice interactive shell.
OTOH, the few times I used (or even tried to install) ksh93...
It was really a nightmare. Then I looked at the code. Ugh, I don'tknow if I'm qualified to say anything, but the code for this shellreally sucks. No wonder it is so difficult to get it compiled, installed, and working.
I suppose the code is just not very portable.Compared with all that the PD ksh is very much nicer.Who needs functionality..? ;)
Personally, I use osh as my primary login shell.It's fun to use because I like history.It is perfectly scriptable to. You just have to work harder at it ;)
We cannot forget history!
We should all still be using V6 and V7! =)
Comments
By Anonymous Coward (138.88.200.143) on
By krh (207.75.181.241) on
Dear RC,
Please don't use <pre> like that. Thanks.
Yours sincerely,
krh
Comments
By RC (4.61.196.211) on
Yes, I saw what terrible things it did only after I posted it. I will preview more in the future. I wouldn't think a forum should be so rife for abuse like this (whether accidental or intentional). Some other option would be preferred. Going through and manually escaping every single gt, lt, and amp character is tedious. Having to add all other HTML tags once any one has been added is annoying as well. This is why I don't post much...
Incidentally... undeadly doesn't seem to like to have comments submitted through a proxy for some reason. I have to disable my filtering proxy to preview or submit comments. And no, I can't set undeadly as a site that should bypass the proxy, because the white background will burn my eyes out in short order.
Comments
By Anonymous Coward (138.88.245.33) on
By Anonymous Coward (68.124.163.80) on
By uriel (81.172.228.44) on
http://www.star.le.ac.uk/~tjg/rc/misc/td
There is an implementation of rc for unix with a plain BSD-like license:
http://www.star.le.ac.uk/~tjg/rc/ This stuff is over 15 years old now, don't you think it's about time we try to start catching up with Plan 9?
Comments
By Anonymous Coward (151.200.236.27) on
By Anonymous Cheese (68.124.163.80) on
"My question is why don't we dump this outdated sh/csh(and derivatives) crap and use rc as default?"
There's no need to begin your question by telling us it's a question. Maybe you just like unnecessary redundancies? Some call it bloat.
rc as the default root shell? You are full-o-bloat, and you leave your question to ambiguity? There is no need for the root account to use a modern shell; did you read that? Read it 7 times until you understand what is being said. A shell that does just the needed work for the root account is all that everyone will ever need. For everything else, create a user account, pick the shell you like (/usr/ports/plan9/rc), and give the account SUDO privileges. Making the root account useable for dorks like you is dangerous. csh is horrible, and it needs to stay that way; csh forces you to not use the root account for everyday work.
Something comes to mind; Linux. Not that bash is useable; but can you imagine all the Loonies that never create a user account and work as root because the default shell(bash) is comfortable to use?
Comments
By Anonymous Coward (138.88.213.94) on
Comments
By Anonymous Cheese (68.124.163.80) on
I agree.
"Why do you feel compelled to worry about what loonies/retards are doing?"
Because if a person has the intelligence to consider using OpenBSD, then there is a chance the person can be rid of their ignorance; in this case, their ignorance is thinking that making root useable for anyone other than a knowledgeable user is The Right Thing.
Comments
By Anonymous Coward (138.88.245.33) on
Show me those dreaded command line history exploits that can be used on running shell scripts, please. Better yet, show me a patch so that everyone can benefit from a well maintained shell. This idea that code rot and a total lack of useability somehow can alter a users behavior to make things "more secure" is nothing more than a cop out. The idea of "secure by default" is to make hardening a system easy. By the same token, if you make it hard for the person who should have access to the computer to access their machine, it encourages him to be sloppy, possibly even to open up "temporary" security holes in order to make his workload smaller. Is it really that difficult to set up a useable non-root account? Well, it shouldn't be. The default shell is the default shell regardless of whether you're logging in as root for the first time or setting up another account. Should certain priviledges be devolved to users other than root, sudo as part of the default configuration? Good idea. Does that mean that the default shell shouldn't have halfway decent command line editing and a working backspace key? No.
By Anonymous Coward (217.210.130.143) on
Comments
By Anonymous Coward (138.88.87.217) on
By Anonymous Cheese (68.124.163.80) on
Comments
By Anonymous Coward (141.156.226.54) on
By Anonymous Coward (210.50.30.21) on
By Uriel (uriel) on http://uriel.cat-v.org