![]() |
1
6
bash仍在使用readline。readline使用emacs或vi模式,并设置各种编辑器模式之间的模式切换。您可以检查基本源代码中的lib/readline文件夹,以查看各种键绑定。 |
![]() |
2
1
根据《巴什鲁布丁手册》(1)(在Fedora 8上):
……(跳过所有单个字母选项) -o option-name The option-name can be one of the following: …… emacs Use an emacs-style command line editing interface. This is enabled by default when the shell is interactive, unless the shell is started with the --noediting option.… vi Use a vi-style command line editing interface.我将其解释为bash直接解释用于行编辑的命令。此选项只设置要使用的命令集。阅读行(3)见手册页。 |
![]() |
3
1
它使用其中一个编辑器的用户熟悉的击键来编辑命令行。 readline是为bash和其他程序提供该功能的工具。
从
READLINE This is the library that handles reading input when using an interacâ tive shell, unless the --noediting option is given at shell invocation. Line editing is also used when using the -e option to the read builtin. By default, the line editing commands are similar to those of emacs. A vi-style line editing interface is also available. Line editing can be enabled at any time using the -o emacs or -o vi options to the set builtin (see SHELL BUILTIN COMMANDS below). To turn off line editing after the shell is running, use the +o emacs or +o vi options to the set builtin. |
![]() |
4
1
据我所知,
一个条件是:当你按下
从
当shell向您显示提示时(除非您处于非编辑模式),您将
已经
使用
|