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
XIA Chuan-liang1,2
Online:
Published:
夏传良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:
TP316.81
XIA Chuan-liang. Expansion of B-shell function[J]. Journal of Computer Applications, 2005, 25(05): 1042-1044.
夏传良. B-shell功能扩展[J]. 计算机应用, 2005, 25(05): 1042-1044.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://www.joca.cn/EN/10.3724/SP.J.1087.2005.1042
http://www.joca.cn/EN/Y2005/V25/I05/1042