Journal of Computer Applications ›› 2005, Vol. 25 ›› Issue (05): 1042-1044.DOI: 10.3724/SP.J.1087.2005.1042

• Software technology • Previous Articles     Next Articles

Expansion of B-shell function

 XIA Chuan-liang1,2   

  1. 1.Academy of Mathematics and System Sciences, Chinese Academy of Sciences, Beijing 100080,China; 2.Department of Computer Science and Technology, Shandong Institute of Architecture and Engineering, Jinan Shandong 250014, China
  • Online:2005-05-25 Published:2005-05-01

B-shell功能扩展

夏传良1,2   

  1. 1.中国科学院数学与系统科学研究院; 2.山东建筑工程学院计算机科学与技术系
  • 基金资助:

    国家自然科学基金资助项目(60073013)

Abstract: In UNIX, B-shell is the most important shell, but it has some shortcomings compared with general programming language. For example, it has no integrated data type similar to arrays and weak ability to calculate and no formatted input-output ways, which is not easy to dispose numerical or char data type. It is also weak in dealing with character string. In this paper the B-shell functions of array data type, dealing with character string, calculating ability, and formatted input-output ways were expanded by using B-shell’s own functions and relative technology. The expansion will make B-shell have the functions similar to those of other high-level programming languages.

Key words:  program design, function expansion, input/output, integrated data, character disposal

摘要: B-shell是UNIX系统的不同shell版本中最重要的一种。B-shell作为独立程序设计语言与一般高级程序设计语言相比存在一些不足,比如B shell没有提供类似数组等集成数据类型、字符串处理能力较弱、数值计算能力不强、没有格式化输出手段等,不便于数值数据和字符数据的处理。针对这些问题,利用B-shell自身的功能和相应技术对B shell在类数组类型、字符串处理、数值计算能力和格式化输出等方面进行功能扩展,通过对UNIX系统中B shell的功能扩展,使B shell具有类似高级程序设计语言的功能,可提高相应软件的开发效率。

关键词: 程序设计, 功能扩展, 输入/输出, 集成数据, 字符处理

CLC Number: