KornShell

二十世纪八十年代早期在贝尔实验室开发的Unix shell

KornShellksh)是一款由大衛·科恩英語David Korn (computer scientist)於二十世紀八十年代早期在貝爾實驗室開發的Unix shell,並在1983年7月14日的USENIX年度技術會議英語USENIX Annual Technical Conference上發佈。[1][2]起初此軟件基於Bourne shell的原始碼編寫。[7]其他貢獻者有貝爾實驗室的開發者,如邁克·維奇(Mike Veach)和帕特·沙利文(Pat Sullivan);他們分別編寫了Emacsvi風格的行編輯模式代碼。[8]KornShell向後兼容Bourne shell,同時還根據貝爾實驗室用戶的需求添加了諸多C shell的功能。

KornShell
原作者大衛·科恩英語David Korn (computer scientist)
首次發佈1983[1][2]
程式語言C
作業系統Unix
語言英語
類型Unix shell
許可協議
網站www.kornshell.org

設計 編輯

KornShell實現了POSIX.2,同時擁有殼層及實用工具、命令解釋器(IEEE Std 1003.2-1992.)。KornShell與傳統的Bourne shell的主要差別有:

歷史 編輯

 
OpenBSD默認殼層(pdksh)的交互界面

KornShell起初是一款專有軟件。2000年,其原始碼以AT&T獨有的許可發佈;但在2005年年初,93q版本使用Eclipse公共許可證發佈。由於KornShell起初為私有授權軟件,在那時的人們創造了自由開源的替代品(pdkshmkshGNU bashzsh)。 [3]KornShell被收錄進了AT&T軟件技術(AST)開源軟件集。

KornShell的原始版本(ksh88)被當做POSIX.2、殼層及實用工具、命令解釋器(IEEE Std 1003.2-1992.)的基礎。

部分供應商有時會提供其自己根據老版本ksh88改編的變體,有時還會在其基礎上添加擴展。ksh93現仍被作者維護,並通過在其後添加字母的方式命名發佈版本;截至2017年1月16日 (2017-01-16)的最新版本為ksh93u+ksh93uksh93t+的更新版);ksh93v仍處於測試階段(截至2017年1月16日 (2017-01-16))。[10]

作為「桌面版KornShell」(dtksh),ksh93作為通用桌面環境的一部分發佈。[11]此版本同時提供了對Motif掛件的殼層級映射。它的目的是成為Tcl/Tk的競爭對手。[12]

原版KornShell(ksh88)成為了AIX第四版的默認殼層,[13][14]但同時也可使用ksh93。[15]

UnixWare英語UnixWare 7中既包括ksh88,也包括ksh93。默認的Kornshell版本為ksh93/usr/bin/ksh),老版本則在/usr/bin/ksh88下可用。[16]UnixWare同時在安裝了CDE的情況下提供{{mono|dtksh}。

變體 編輯

下列為多個與KornShel相關的軟件產品:

另請參閱 編輯

參考文獻 編輯

  1. ^ 1.0 1.1 Ron Gomes. Toronto USENIX Conference Schedule (tentative). Newsgroupnet.usenix. Jun 9, 1983 [Dec 29, 2010]. (原始內容存檔於2013-06-02). 
  2. ^ 2.0 2.1 Guy Harris. csh question. Newsgroupnet.flame. Oct 10, 1983 [Dec 29, 2010]. (原始內容存檔於2013-06-02). 
  3. ^ 3.0 3.1 Archived copy. [2018-12-10]. (原始內容存檔於2018-11-14). 
  4. ^ 5.0 5.1 MirBSD Korn Shell. Mirbsd.org. [10 December 2018]. (原始內容存檔於2015-08-01). 
  5. ^ package changes from 2013-05-24 to 2013-06-01. 14 February 2015 [10 December 2018]. (原始內容存檔於2015-02-14). 
  6. ^ Korn, David G., ksh - An Extensible High Level Language, Proceedings of the USENIX 1994 Very High Level Languages Symposium (USENIX Association), October 26, 1994 [February 5, 2015], (原始內容存檔於2020-08-23), Instead of inventing a new script language, we built a form entry system by modifying the Bourne shell, adding built-in commands as necessary. 
  7. ^ Bolsky, Morris I.; Korn, David G. Acknowledgements. The KornShell Command and Programming Language. Englewood Cliffs, NJ: Prentice Hall. 1989: xii. ISBN 0-13-516972-0. 
  8. ^ traditional Bourne shell family / history and development. In-ulm.de. [10 December 2018]. (原始內容存檔於2020-04-14). 
  9. ^ This is the AT&T Software Technology ast software download site from AT&T Research. The AT&T AST OpenSource Software Collection provides an overview and Practical Reusable UNIX Software... Github.com. 10 December 2018 [10 December 2018]. (原始內容存檔於2020-10-31). 
  10. ^ Bill Rosenblatt; Arnold Robbins. Learning the Korn Shell 2. O'Reilly Media, Inc. 2002: viii–ix [2019-05-04]. ISBN 978-0-596-00195-7. (原始內容存檔於2020-08-04). 
  11. ^ J. Stephen Pendergrast. Desktop KornShell graphical programming. Addison-Wesley. 1995: 359 [2019-05-04]. ISBN 978-0-201-63375-7. (原始內容存檔於2020-08-04). 
  12. ^ Casey Cannon; Scott Trent; Carolyn Jones. Simply AIX 4.3. Prentice Hall PTR. 1999: 21. ISBN 978-0-13-021344-0. 
  13. ^ IBM Knowledge Center. Ibm.com. [10 December 2018]. (原始內容存檔於2019-08-09). 
  14. ^ IBM Knowledge Center. Ibm.com. [10 December 2018]. (原始內容存檔於2019-08-09). 
  15. ^ UNIX95 conformance. Uw714doc.sco.com. [10 December 2018]. (原始內容存檔於2020-08-02). 
  16. ^ Archived copy. [2014-07-28]. (原始內容存檔於2014-07-28). 
  17. ^ David Korn Tells All. Slashdot. [2009-10-22]. (原始內容存檔於2009-06-16). 
  18. ^ Jerry Feldman — USENIX NT/LISA NT conference attendee. Lists.blu.org. [2009-10-22]. (原始內容存檔於2012-02-26). 
  19. ^ Windows Services for UNIX Version 3.0. Technet.microsoft.com. [2009-10-22]. (原始內容存檔於2017-08-26). 
  20. ^ Anatole Olczak. The Korn shell: Unix and Linux programming manual. Addison-Wesley Professional. 2001: 4 [2019-05-04]. ISBN 978-0-201-67523-8. (原始內容存檔於2020-08-04). 

延伸閱讀 編輯

外部連結 編輯