shell分类 Boune Shell Vs C shell

本文对比了Bourne型shell(如Bourne shell、Bourne Again Shell、Korn shell)和C型shell(如C shell、Tenex/TOPS C shell)的特点及优缺点。Bourne型shell更强大,支持进程控制、变量、正则表达式等功能;C型shell则在交互性和命令历史方面表现更佳。
Boune-type  shell: 
Boune shell(sh),
Korn shell (ksh)
Bourne Again Shell( bash)
POSIX Shell (sh)

C-type shell:
C shell(csh)
Tenex/TOPS C shell(tcsh)

Boune type shell is more powerful than C type shell. It holds the following features:
1, Process Control
2, Variables
3, Regular Expressions
4, Flow Control
5, Powerful Input/Output control
6, Functions

the shortcoming of original bourne shell:
1, No filename completion
2, No command history or command editing
3, DIfficulty in executing multiple background processes or jobs

the C type shell is used to convinent interactive use and to change the syntax of Bourne shell to C type.
Its drawbacks includes:
1, weak input / output control
2, lack of function
3, confusing syntax due to a lazy intepreter
Its Strengths include:
1, command history
2,  Alias
3, File name completion
4, Job controls

The TENEX/TOPS C shell, tcsh, is a newer version of the C shell that enables you to scroll through the
command history using the up and down arrow keys. It also enables you to edit commands using right and
left arrow keys.

Ksh:
It incorporates all the C shell's interactive features into the Bourne shell's syntax.
Some of the additional features that the Korn shell brings to the Bourne shell include the following:
l Command history and history substitution
l Command aliases and functions
l File name completion
l Arrays
Built-in integer arithmetic

BASH
The Bourne Again shell, bash, was developed as part of the GNU project and has replaced the Bourne
shell, sh, for GNU-based systems like Linux. All major Linux distributions, including Red Hat, Slackware,
and Caldera, ship with bash as their sh replacement.
Although it includes C shell ( csh and tcsh) and Korn shell ( ksh) features, bash retains syntax
compatibility with the Bourne shell, enabling it to run almost all Bourne shell scripts.
Some features that bash includes in addition to those of the Korn shell are
l Name completion for variable names, usernames, host names, commands, and filenames
l Spelling correction for pathnames in the cd command
l Arrays of unlimited size
l Integer arithmetic in any base between 2 and 64
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值