摘要
Bash与tcsh是目前Unix/Linux操作系统中两种流行的shell。通过举例,对这两种shell常用的功能和特性进行了对比,内容包括变量赋值、数组、环境设置、命令参数、数值计算、条件流程控制、循环语句和信号处理等。这些比较是对这二者主要区别的一个很好的总结,能够为bash与tcsh的学习和使用者提供便利和帮助。
Bash and tcsh are two kinds of popular shell in the present Unix/Linux operating system.Through some examples, this paper has carried on the contrast to more commonly used functions and the characteristics of the two kinds of shell, the content including variable assignment, array, environment setting, command parameters, numerical calculus, condition flow control, looping construct, signal-catching and so on.The contrast is a very good summary that distinguish the two, which can provides convenience and help for the bash and tcsh learners and users.
作者
石庆冬
SHI Qing-dong(Motorola(China) Technologies Ltd., Beijing 100102, China)
出处
《电脑知识与技术》
2008年第11X期1390-1392,共3页
Computer Knowledge and Technology