コンテンツにスキップ

Unixシェル

出典: フリー百科事典『ウィキペディア(Wikipedia)』
KDE Plasma 5セッションのzsh、bash、およびkshシェルウィンドウ

UnixUnix

UnixBourne Shell  C Shell Bourne Shell shAT&TUNIXUnix ()ALGOL 68 [1]

C Shell (csh) Ccdpath

2

[]


使UnixOSGUIpasswd passwd -e  chsh 

Unix使OS使UNIX

使UnixOS

初期のシェル[編集]

Bourne Shell[編集]


Bourne Shell 1977 Version 7 Unix UnixOS Bourne Shell  shUNIX /bin/sh /bin/sh  Bourne Shell POSIX KornShell POSIXBourne Shell使

C Shell[編集]


C Shell UnixOSBSDVersion 6 Unix Thompson shell C使使C Shell 

[]

Bourne Shell []


Bourne Shell (sh): 1978Version 7 Unix 

Almquist Shell (ash): Bourne Shell BSD使FreeBSD  NetBSD  ash POSIXsh使

Bourne-Again shell (bash): GNU Bourne Shell Linux

Debian Almquist shell (dash): DebianUbuntu ash 使

KornShell (ksh): 

Public domain Korn shell (pdksh): ksh

MirBSD Korn shell (mksh): OpenBSD /bin/ksh  pdksh  MirOS BSD [2]

Yet another shell (yash): 2007C99POSIX.1-2008

Z Shell (zsh): shashbashcshkshtcsh macOS Catalina 10.15  macOS [3]

C Shell []


C Shell (csh): 1978 BSD [4]

TENEX C shell (tcsh)

Hamilton C shell: Nicole Hamilton  OS/2 (1988)  Windows (1992) [5]

[]


es: Plan 9 from Bell Labs (Plan 9) rc1990[6]

Friendly interactive shell (fish): 2005

Perl Shell (psh): UnixWindowsbash  Perl 

pysh: IPythonPython[7]

rc: Plan 9  Version 10 Unix Tom DuffUnixOS

scsh: Scheme

wish: Tcl/TkTcl/Tk

zoidberg: Perl[8]

 www.freebsd.org 

[]


Thompson shell (sh): Unix 1 (1971)  6 (1975) UNIX Ancient UNIX 使

PWB shell  Mashey shell (sh): Thompson shell  John Mashey 1976 Programmer's Workbench UNIX 

Unix[]


 $PATH Unix
sh ksh csh tcsh bash zsh
/etc/.login login login
/etc/csh.cshrc yes yes
/etc/csh.login login login
~/.tcshrc yes
~/.cshrc yes yes[注釈 1]
~/.login login login
~/.logout login login
/etc/profile login login login login
~/.profile login login login[注釈 2] login
~/.bash_profile login[注釈 2]
~/.bash_login login[注釈 2]
~/.bash_logout login
~/.bashrc int.+n/login
/etc/zshenv yes
/etc/zprofile login
/etc/zshrc int.
/etc/zlogin login
/etc/zlogout login
~/.zshenv yes
~/.zprofile login
~/.zshrc int.
~/.zlogin login
~/.zlogout login

:



"yes" - 

"login" - 

"n/login" - 

"int." - 

[]

注釈[編集]

  1. ^ ~/.tcshrc が見つからない場合のみ
  2. ^ a b c 実際には ~/.bash_profile~/.bash_login~/.profile の順で最初に読み取り可能なファイルだけを読み込む。sh として呼び出されたときは ~/.profile のみを読み込む。

出典[編集]



(一)^ Re: Late Bloomers Revisited USENET post to comp.lang.misc by Piercarlo "Peter" Grandi, Dept of CS, UCW Aberystwyth, UK, Dec 17, 1989.

(二)^ The MiriBSD Korn Shell.  MirOS. 201278

(三)^ Use zsh as the default shell on your Mac - Apple Support.  Apple. 202248

(四)^ Harley Hahn, Harley Hahn's Guide to Unix and Linux.

(五)^ Hamilton C shell for Windows Release Notes 4.0, retrieved June 19, 2010.

(六)^ es-shell.  Google Code. 201278

(七)^ pysh.  Sourceforge.jp. 201278

(八)^ Zoidberg.  CPAN. 201278

参考文献[編集]

  • Ellie Quigley (2001). “Introduction to UNIX shells”. Unix Shells by Example. Prentice Hall PTR. ISBN 013066538X  — 各種シェルの歴史と使用法など

関連項目[編集]

外部リンク[編集]