Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7323
  • 博文数量: 2
  • 博客积分: 120
  • 博客等级: 入伍新兵
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-05 22:47
文章分类
文章存档

2008年(2)

我的朋友
最近访客

分类:

2008-04-06 11:35:22

command-line editing这个subject上,文中讲了3个不同的shell在这方面的工作,分别是Bourne shell, C shellbash. Bourne shell在这方面根据作者的意思,基本上是无作为,"You can use the BACKSPACE key to edit, but once you hit RETURN, it's gone forever!",似乎Bourne shell中只有BACKSPACE应用与这个主题;C shell有一些improvement,即它的history mechanism,但作者称其"provides a few very awkward ways of editing previous commands."。看来这2shellCLE这方面都不是很强大。BashCLE这方面做的工作有3点:一是提供了两种CLE编辑模式;二是提供命令fc用来模拟C shellhistory mechanism;三是干脆直接包含了the original C shell history mechanism. 这也可以解释了为什么2.2 The history list2.5 The fc command, 2.6 History Expansion包含在Chapter 2. 由此可以看出CLEtext editor的紧密联系。三点中的第一点是针对两个最流行的UNIX editors, vi and emacs的用户;第二点是针对vi and emacs以外的text editors的用户;第三点针对C shell用户。

另外,the history mechanism是属于CLE这个subject的,并且针对的是previous commands.

阅读(541) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:What emacs editing mode gives us

给主人留下些什么吧!~~