Wiki: Korn shell

转载 2006年06月05日 13:08:00

Korn shell

From Wikipedia, the free encyclopedia

The Korn shell (ksh) is a Unix shell which was developed by David Korn (AT&T Bell Laboratories) in the early 1980s. It is wholly upwards compatible with the Bourne shell and includes many features of the C shell as well, such as a command history, which was inspired by the requests of Bell Labs users.

The main advantage of ksh over the traditional unix shell is in its use as a programming language. Since its conception, several features were gradually added, while maintaining strong backwards compatibility with the Bourne shell.

The ksh93 version supports associative arrays and built-in floating point arithmetic. Its advanced scripting functions put it on a par with specialised programming languages such as awk and perl.

For interactive use, ksh provides the ability to edit the command line in a WYSIWYG fashion, by hitting the appropriate cursor-up or previous-line key-sequence to recall a previous command, and then edit the command as if the users were in edit line mode. Two modes are available, compatible with vi and emacs.

ksh aims to respect the Shell Language Standard (POSIX 1003.2 "Shell and Utilities Language Committee").

Until 2000, Korn Shell remained AT&T's proprietary software. Since then it has been open source, originally under a license peculiar to AT&T but, since the 93q release in early 2005, it has been licenced under the Common Public License. Korn Shell is available as part of the AT&T Software Technology (AST) Open Source Software Collection. As ksh was initially only available through a commercial license from AT&T, a number of free and open source alternatives were created. These include the public domain pdksh, Free Software Foundation's Bourne-Again-Shell bash, and zsh.

Although the ksh93 version added many improvements (associative arrays, floating point arithmetic, a.o.), some vendors still ship their own version of the older ksh88 as /bin/ksh, sometimes with extensions (as of 2005 only Solaris and NCR UNIX (a.k.a. MP-RAS) ship ksh88, all other Unix vendors migrated to ksh93 and even Linux distributions started shipping ksh93) There are also two modified versions of ksh93 which add features for manipulating the graphical user interface: dtksh which is part of CDE and tksh which provides access to the Tk widget toolkit.

SKsh is an AmigaOS version, that offers several Amiga-specific features such as ARexx interoperability.

The MKS Korn shell is another commercial ksh reimplementation. It is (or at least was) included with Microsoft's Services for Unix.

自定义 Korn Shell、Bash 和 C Shell 的提示符。

期望的效果如下:                                                 [xport@bsdws01 bin] $                      ...
  • xport
  • xport
  • 2005年09月21日 12:57
  • 2465

The print command (Korn shell only)

在学习co-process时,用到print -p $var  来进行通信,当时不太理解这个~~In the Korn shell, print is preferred to echo . ...
  • tangy110
  • tangy110
  • 2011年04月19日 15:40
  • 559

Korn Shell 脚本入门

Korn Shell 脚本入门 所有的 UNIX® 用户都应该了解如何使用 Korn Shell 脚本。通过编写 Shell 脚本,可以让您实现许多任务的自动化,并可以为您节约大量的...
  • robertzhouxh
  • robertzhouxh
  • 2013年09月30日 11:22
  • 3068

Korn Shell Notes(II)

Korn Shell Notes 1 Useful Cmdswc - display a count of lines, words and characters in a file.    It ...
  • bonny95
  • bonny95
  • 2008年11月24日 12:44
  • 602

Korn Shell Notes(IV)

16 The Environment 16.1 CDPATH The CDPATHvariable is provided to make directory navigati...
  • bonny95
  • bonny95
  • 2008年11月30日 19:38
  • 461

Korn shell scripts

http://www.bo.infn.it/alice/alice-doc/mll-doc/impgde/node20.html
  • chenpan1988
  • chenpan1988
  • 2013年09月06日 09:44
  • 401

Korn Shell Notes(V)

 19. Input/Output Commands19.1 Escape CharactersThe /c escape character causes the trailing newline ...
  • bonny95
  • bonny95
  • 2008年12月01日 22:48
  • 482

korn Shell Notes(III)

 6 VariablesThe Korn shell supports four data types: string, integer, float, and array. If a data ty...
  • bonny95
  • bonny95
  • 2008年11月26日 21:16
  • 651

Korn Shell(ksh)学习

 Korn Shell(ksh)学习Korn Shell1.语法特殊的文件/etc/profile  在登录时首先自动执行。$HOME/.profile  在登录时第二个自动执行。$ENV  ...
  • jjaing
  • jjaing
  • 2009年12月11日 15:09
  • 1350

Korn Shell(简称ksh)

xx
  • onlyForCloud
  • onlyForCloud
  • 2015年06月11日 21:13
  • 317
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Wiki: Korn shell
举报原因:
原因补充:

(最多只允许输入30个字)