Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

[ Create a new account ]

AT&T's Korn Shell Source Code Released

Posted by Hemos on Sat Mar 04, 2000 02:38 PM
from the let-it-be-free dept.
Henk Langeveld writes, "This announcement can be found at kornshell.com: March 1, 2000: I am happy to annouce the the 'i' point release of ksh93 is now available for download. For the first time, source is available as well as binaries for several architectures. If you build binaries for new architectures, and send them to us, we can add them to the download site. The download page has been completely revised in a manner that hopefully will be easier to use. ksh93 is part of the ast-open package. tksh (ksh with tk support) is also part of this package. -- David Korn
As a long-term fan I'm glad to see the korn shell now being released under a new license. The license is quite non-standard, and does include some restrictions (changes can only be distributed as patches), but as far as I can see it does allow anyone to bundle binaries with their products. The distribution format is quite non-standard. The research group at AT&T has their own packaging system, built around nmake. "
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1) | 2
  • Re:Bourne Again Korn Shell? by Anonymous Coward (Score:1) Saturday March 04 2000, @11:53AM
  • That's a problem with uploads in general by Anonymous Coward (Score:1) Saturday March 04 2000, @10:04AM
  • kornshell... by Anonymous Coward (Score:1) Saturday March 04 2000, @10:09AM
  • pdksh by anewsome (Score:1) Saturday March 04 2000, @09:51AM
  • Re:Ahhh... the Korn Shell... but is it too late? by mce (Score:1) Saturday March 04 2000, @11:13AM
  • Re:Pushd/popd, !-3, and arrow keys by Dom2 (Score:1) Monday March 06 2000, @05:09AM
  • globbing by Virtex (Score:1) Sunday March 05 2000, @12:43AM
  • Re:Am I the only one using tcsh? by Astastrafal (Score:1) Saturday March 04 2000, @06:53PM
  • uhhm, who cares? by RelliK (Score:1) Saturday March 04 2000, @09:58AM
  • ksh is the commercial (POSIX) standard! by Macka (Score:1) Sunday March 05 2000, @09:04PM
  • Re:zsh rocks by Admiral Burrito (Score:1) Saturday March 04 2000, @01:31PM
  • Re:Am I the only one using tcsh? by Lx (Score:1) Saturday March 04 2000, @01:02PM
  • Re:great. by Lx (Score:1) Saturday March 04 2000, @01:06PM
  • it's also massively bloated by mattc (Score:1) Saturday March 04 2000, @02:42PM
  • Re:You need to get laid by mattc (Score:1) Saturday March 04 2000, @02:46PM
  • Korn Again Shell - Kash by Charlotte (Score:1) Saturday March 04 2000, @06:13PM
  • I see... by bkocik (Score:1) Saturday March 04 2000, @11:36AM
  • DoH! by bkocik (Score:1) Saturday March 04 2000, @11:38AM
  • Re:Am I the only one using tcsh? by andrewb (Score:1) Saturday March 04 2000, @01:30PM
  • Re:Bourne Again Korn Shell? by maw (Score:1) Saturday March 04 2000, @05:25PM
  • Re:Bourne Again Korn Shell? by nil (Score:1) Sunday March 05 2000, @07:30AM
  • Re:Bourne Again Korn Shell? by Lazaru5 (Score:1) Sunday March 05 2000, @12:02PM
  • Re:bash is better. Thanks for nothing, Korn. by mayoff (Score:1) Saturday March 04 2000, @06:14PM
  • Re:Bourne Again Korn Shell? by Bazzargh (Score:1) Sunday March 05 2000, @08:09AM
  • Am I the only one using tcsh? by brucet (Score:1) Saturday March 04 2000, @12:03PM
  • No it's not by adamspiers (Score:1) Saturday March 04 2000, @03:17PM
  • Re:Ahhh... the Korn Shell... but is it too late? by adamspiers (Score:1) Saturday March 04 2000, @01:54PM
  • Re:zsh rocks by adamspiers (Score:1) Saturday March 04 2000, @02:32PM
  • Re:Korn by nick43 (Score:1) Saturday March 04 2000, @06:46PM
  • Zsh has both of these features. by jplauril (Score:1) Saturday March 04 2000, @01:25PM
  • Re:pdksh by NReitzel (Score:1) Saturday March 04 2000, @09:58AM
  • Bash does this too, but differently by BigGaute (Score:1) Saturday March 04 2000, @02:03PM
  • Re:Bourne Again Korn Shell? by jkorty (Score:1) Saturday March 04 2000, @02:44PM
  • Re:not microsoft nmake by /ASCII (Score:1) Monday March 06 2000, @02:08AM
  • This is excellent news... by Dextius Alphaeus (Score:1) Saturday March 04 2000, @12:57PM
  • [OT] ast by lfd (Score:1) Sunday March 05 2000, @07:24AM
  • Re:Binaries from everyone accepted? by quecojones (Score:1) Saturday March 04 2000, @10:01AM
  • Re:More than just ksh by ebh (Score:1) Monday March 06 2000, @09:36AM
  • Re:Yer hilarious by roman_mir (Score:1) Sunday March 05 2000, @06:18AM
  • You need to get laid by rambone (Score:1) Saturday March 04 2000, @10:39AM
  • Re:uhhm, who cares? by reallocate (Score:1) Saturday March 04 2000, @12:40PM
  • Re:You need to get laid by Kronovohr (Score:1) Saturday March 04 2000, @12:40PM
  • All I can say is... by Kronovohr (Score:1) Saturday March 04 2000, @10:15AM
  • Use ZSH (was Re:Bourne Again Korn Shell?) by opk (Score:1) Tuesday March 07 2000, @01:23AM
  • Re:Ksh? by Jesus Christ (Score:1) Saturday March 04 2000, @11:00PM
  • moderate parent up and tell tacofool! by Jesus Christ (Score:1) Sunday March 05 2000, @12:44AM
  • Does anybody want a REXX shell? by Atev (Score:1) Sunday March 05 2000, @02:02PM
  • zsh rocks by Anonymous Coward (Score:2) Saturday March 04 2000, @11:00AM
  • I learned Korn first by Anonymous Coward (Score:2) Saturday March 04 2000, @09:52AM
  • Agreed. by Brian Knotts (Score:2) Saturday March 04 2000, @04:36PM
  • Re:Bourne Again Korn Shell? by Ian Bicking (Score:2) Sunday March 05 2000, @07:38AM
  • Re:Open Source license by slim (Score:2) Monday March 06 2000, @12:24AM
  • Three Steps forward 1/2 step back by djKing (Score:2) Saturday March 04 2000, @09:53AM
  • Re:Binaries from everyone accepted? by Evangelion (Score:2) Saturday March 04 2000, @09:59AM
  • tcsh most popular shell by acb (Score:2) Saturday March 04 2000, @06:31PM
  • Advantages over zsh? by acb (Score:2) Saturday March 04 2000, @06:35PM
  • Re:Bourne Again Korn Shell? by logicTrAp (Score:2) Saturday March 04 2000, @07:44PM
  • Re:Pushd/popd, !-3, and arrow keys by Guy Harris (Score:2) Sunday March 05 2000, @10:01AM
  • Re:Pushd/popd, !-3, and arrow keys by Guy Harris (Score:2) Sunday March 05 2000, @10:03AM
  • Re:Bourne Again Korn Shell? by Guy Harris (Score:2) Sunday March 05 2000, @10:38AM
  • Re:Pushd/popd, !-3, and arrow keys by Guy Harris (Score:2) Monday March 06 2000, @08:48AM
  • Thanks! by Bruce Perens (Score:2) Saturday March 04 2000, @08:14PM
  • There is a psh (perl shell) by kcurrie (Score:2) Saturday March 04 2000, @01:41PM
  • Re:bash is better. Thanks for nothing, Korn. by Yakko (Score:2) Saturday March 04 2000, @06:58PM
  • Binaries from everyone accepted? by doomy (Score:2) Saturday March 04 2000, @09:52AM
  • Pushd/popd, !-3, and arrow keys by A nonymous Coward (Score:2) Saturday March 04 2000, @12:55PM
  • Re:pdksh by Admiral Burrito (Score:2) Saturday March 04 2000, @12:57PM
  • License by Detritus (Score:2) Saturday March 04 2000, @10:03AM
  • do we really need this anymore? by jetson123 (Score:2) Saturday March 04 2000, @03:05PM
  • Re:Bourne Again Korn Shell? by warpeightbot (Score:2) Saturday March 04 2000, @09:41PM
  • Re:License by hla (Score:2) Saturday March 04 2000, @04:02PM
  • Re:Open Source license by Jburkholder (Score:2) Saturday March 04 2000, @04:53PM
  • Re:Yer hilarious by extrasolar (Score:2) Saturday March 04 2000, @07:58PM
  • Re:Three Steps forward 1/2 step back by starman97 (Score:2) Saturday March 04 2000, @12:22PM
  • Re:pdksh by smillie (Score:2) Saturday March 04 2000, @11:59AM
  • Re:Ahhh... the Korn Shell... but is it too late? by Wah (Score:2) Saturday March 04 2000, @05:08PM
  • Re:Ahhh... the Korn Shell... but is it too late? by costas (Score:2) Saturday March 04 2000, @11:42AM
  • Slashdot Poll by Greg Koenig (Score:2) Saturday March 04 2000, @07:50PM
  • Commendations by Kris Magnusson (Score:2) Saturday March 04 2000, @10:15AM
  • Re:Bourne Again Korn Shell? by rambone (Score:2) Saturday March 04 2000, @10:42AM
  • Yes. by rambone (Score:2) Saturday March 04 2000, @12:49PM
  • by Anonymous Coward on Saturday March 04 2000, @11:27AM (#1225760)
    nmake is not Microsoft nmake, it is the AT&T Bell Labs next-generation make that is way better than standard UNIX make: parallel builds, include file scanning, coshell (instead of fork/exec for every shell command), distributed build support, compiled makefiles, state tracking from one build to the next, etc., etc., etc. When originally developed, it helped cut build times for the AT&T 5ESS switch from 3 days down to 1. http://www.bell-labs.com/project/nmake/
  • by logicTrAp (2864) on Saturday March 04 2000, @07:37PM (#1225761) Homepage
    ksh is actually quite servicable in the absense of a better one, as long as you apply the right magic to your .shrc or whatnot. To get some decent command line editting do a 'set -o emacs', to get the arrow keys etc to work
    alias __A=`/bin/echo "\020"` # Up
    alias __B=`/bin/echo "\016"` # Down
    alias __C=`/bin/echo "\006"` # Right
    alias __D=`/bin/echo "\002"` # Left
    alias __H=`/bin/echo "\001"` # Home
    alias __p=`/bin/echo "\004"` # Delete
    alias __q=`/bin/echo "\005"` # End
    alias __z=`/bin/echo "\017"` # Clear
    (The previous works on Solaris, it might need some tweaking for different forms of echo) Unfortunately, I don't know of an easy way to get TAB to do filename completion (the default is ESC ESC) Would I rather use ksh than bash? No. But, there are a lot of times when getting ksh to work nicely is easier than getting bash onto the machine in question.
  • by Sun Tzu (41522) on Saturday March 04 2000, @09:53AM (#1225762) Homepage Journal
    Not that I don't like bash, but ksh is what I use at work and what I used for years prior to encountering using Linux for the first time. But perhaps my habits have become restricted to only the functions that the two hold in common. ;)

    I've never really looked closely at the differences between bash and ksh but the question that occurs to me is this: has bash overtaken ksh in functionality to the point that this release is now too late to matter?
  • by wnissen (59924) on Saturday March 04 2000, @09:55AM (#1225763)
    This reminds me of the article posted a while ago on the original Unix source code being available. Something like "Open source in history"? Ah , here [slashdot.org] it is. Anyway, kind of sad that it took this long for one of the best shells to be released. I'm not blaming David Korn, it's a great shell and I'm sure he did what he thought was most responsible for AT&T to do with it. Heck, I'm completely willing to believe that it took this long to convince his bosses that it would be a good idea from a standpoint of actual improvement to the code. I don't see anything on the web site as to why they decided to release , although "free for non-commercial and educational use" is not exactly what I'd call "free source"...

    Walt

    Walt
  • by dgk (159863) on Sunday March 05 2000, @04:34PM (#1225764)
    I read all the comments related to AT&T's Korn Shell Source Code Released
    posting and decided to provide some additional information that
    should clear up so many misconceptions. I will also try to get a FAQ
    on the kornshell.com site to clarify many other points as well.

    First of all, I would like to thank they authors of bash, pdksh,
    and zsh for their valuable contributions. I have tried to
    provide information on changes to ksh so that these shells
    could add these features in a compatabile way.

    I will respond to some of the comments here:

    1. Too little too late. This may or may not be true, but it
    is irrelevant. At this point, it's too early to make such
    a statement -- the user community will decide. I would have
    prefered to make this OpenSource from the beginning but I did
    not have this option. It has taken a lot of effort to get
    this source released at all. Note that ksh93 is only a
    part of this AT&T open source distribution and that there are
    tools that have no other UNIX/LINUX equivalent.

    2. bash is much better than ksh.
    These comments have no information that would make them
    meaningful without specific examples. What version of ksh
    and what version of bash? I am interested in hearing which
    features of bash are missing from ksh93 (see point #5).

    3. zsh is better than ksh.
    Although zsh has an impressive set of features,
    it is not POSIX compatible making it difficult to write
    portable scripts. I am interested in hearing from zsh
    users what *language features* are missing in ksh93
    (I am aware of most of the interactive enhancements).

    4. tcsh is better than ksh.
    Irrelevant. tcsh is based on csh, which is generally agreed
    not to be a good scriping language. So why compare it?
    See "csh programming considered harmful" by Tom Christiansen
    (http://www.faqs.org/faqs/unix-faq/shell/csh-why not)

    5. There are some features in ksh93i that some users seem to be
    unaware of. Several of these are not in bash, zsh, or pdksh.
    a. File and command name completion (using tab in viraw mode).
    b. Key binding (arrow keys work on most systems by default).
    c. Process substitution, e.g. command1 ( command2 )
    d. Ability to connect to tcp or udp connections using
    /dev/tcp/hostname/portno with redirections.
    e. Complete ANSI-C floating point arithmetic, including
    math functions.
    f. Complete ANSI-C printf formatting with several extensions
    including date/time foratting using %T.
    g. ANSI-C string input using $'...'. (I believe zsh has this).
    h. Associative arrays.
    i. Extended regular expression matching/replacement including
    backreferences for shell variables.
    j. Runtime loading of extensions including builtins.
    There is an API for referencing ksh93 internals.
    k. Active variables. The ability to associate processing
    functions with shell variables (similar to traces in tcl).
    l. Compound objects, useful for implementing data structures.
    m. Reference variables for passing variables by name.
    n. The shell is written as a library that can be reused
    in other commands. For example, dtksh which combines
    ksh93 with X11 and Motif, and tksh which combines
    ksh93 with tcl/tk.

    5. Confusion about the licensing terms.
    The kornshell.com home page hasn't been updated yet so it still
    contains outdated references to commercial and educational
    uses. There is no such distinction. The license does
    allow for commercial distribution of binaries and/or source.
    We do not have OSF certification as of yet, but I do think
    that the license satisfies all of the OpenSource principles.
    The license does not have the GNU GPL restrictions.

    6. nmake is not Microsoft nmake.
    It certainly is not. It is simply the best make program
    that I have every seen. The Makefiles are consice and
    protable. No makefile or dependency generators are needed.
    It can generate both UNIX makefiles and Microsoft nmake
    files for systems that do not have AT&T nmake.
  • by costas (38724) on Saturday March 04 2000, @10:30AM (#1225765) Homepage
    I am kinda dissappointed noone in this thread has mentioned Zsh [zsh.org].

    Z-Shell is competitive with bash, and IIRC the comp.os.unix.shell FAQ shell comparison it actually has more features than any other shell out there. The new (still unstable version) even has dynamic module loading...

    Plus, it's a (near) drop-in replacement for ksh and can even emulate some csh features for those that like them (search for the cshjunkie* options in the manual :-)


    engineers never lie; we just approximate the truth.
  • Re:In other news (Score:4)

    by Greg Koenig (92609) on Saturday March 04 2000, @07:44PM (#1225766)
    What's really funny is that I've been to USENIX conferences with Dave and he's worn "Korn" T-shirts. I about died the first time I saw him doing this.

    Actually, even more funny was when I was at the USENIX Windows NT symposium a few years ago. The Microsofties were up on stage talking about their Unix toolkit for Windows NT. This includes several common Unix commands (ls, cp, ps, etc.) along with a version of ksh. Dave stood up and went to the microphone and mentioned a few areas of incompatibility with the version of ksh used in the Unix toolkit for Windows NT. The Microsofties, not realizing who they were talking to, kept going back and forth with him, insisting that their version of ksh actually did comply with the AT&T ksh, and sort of implying that Dave (who they still didn't recognize) didn't know what he was talking about. Nearly everybody in the audience was laughing out loud, and eventually somebody let the Microsofties in on who exactly they were talking to.
  • by gjt (93855) on Saturday March 04 2000, @10:30AM (#1225767)
    I use bash as my interactive shell.

    But for scripting, I always use ksh (on Solaris). Why? The ksh syntax is a superset of the original Bourne Shell, and therefore pretty much a superset of the Bourne Again Shell.

    bash primarily adds readline support which makes it super-easy to use interactively. readline doesn't do much for non-interactive scripts.

    In the Korn shell, the typeset comand provides a number of extra features for things such as presenting non-decimal numbers, and converting from upper case text to lower case and vice versa.

    Another way cool feature of ksh is `|&` which is a way of getting a pipe to a background process. I guess they call it co-processes, but it really make a client/server process. I guess you can also call it a bi-directional pipe. You can then use `read` and `print` to send and receive stuff from the "server" started with `|&`. For example, if I need to do floating point math, I can start `bc` in the background with `|&`.

    I think what we need is a ksh with readline support added. Bourne Again Korn Shell! (Maybe spell "Bourne" as "Born)

  • by Bruce Perens (3872) <bruce@p e r e ns.com> on Saturday March 04 2000, @10:10AM (#1225768) Homepage Journal
    We reviewed this on the license-discuss mailing list a long time ago. Everybody in the discussion at that time concluded that it was an Open Source license, although I don't think anyone was as happy with it as they would be with some of our simpler and less restrictive licenses. I doubt that OSI will certify it but that's up to them. They tend to reject most termination clauses.

    I discussed the ksh source release with David Korn a while back, including the point that it was probably too late. He seemed to think that the original still had some features not available in pdksh or elsewhere.

    Thanks

    Bruce

  • But not DFSG free? (Score:5)

    by Carl (12719) on Saturday March 04 2000, @10:22AM (#1225769) Homepage
    Debian legal doesn't seem to consider this license DFSG free. See the thread starting at http://www.debia n.org/Lists-Archives/debian-legal-0003/msg00009.ht ml [debian.org]. Not all messages are archived yet but the main points are:
    • a "you must monitor our web site" clause
    • a "you are responsible for ensuring that people you distribute the software to comply with this license" clause
    • a "you must contact us if you distribute patches" clause
    • an unilateral-termination clause
    • a "you must adhere to U.S. law" clause
    The 'ensure that others comply' and the 'Termination clause' seem very non-free, the others are only very annoying (especialy if you don't have easy internet access and live outside the US).
  • In other news (Score:5)

    by Greyfox (87712) on Saturday March 04 2000, @10:00AM (#1225770) Homepage
    AT&T shares fell in early trading after the popular band "Korn" announced a lawsuit for trademark infringement. "It's obvious they're using our name. Who would have thought of spelling corn with a "K" except us?" commented a lawyer for the band. AT&T declined to comment on the suit.
  • 56 replies beneath your current threshold.
(1) | 2