|
|
Line 1,177: |
Line 1,177: |
|
| |
|
| === Command Line Editing === | | === Command Line Editing === |
| When dash is being used interactively from a terminal, the current command and the command history
| | dashがターミナルから対話的に使用されている場合、現在のコマンドとコマンド履歴(Builtinsのfcを参照)は、viモードのコマンドライン編集を使用して編集できる。 このモードでは,viのmanページで説明されているコマンドのサブセットに類似した,以下に説明するコマンドを使用する. コマンド''set -o vi''は、vi-mode編集を有効にし、shをvi挿入モードにする。 viモードを有効にすると、shは挿入モードとコマンドモードの間で切り替えることができる。 viと同様で、⟨ESC⟩を打つとviコマンドモードに入る。 コマンドモード中に⟨return⟩を打つと、その行がシェルに渡される。 |
| (see fc in Builtins) can be edited using vi-mode command-line editing. This mode uses commands, de‐
| |
| scribed below, similar to a subset of those described in the vi man page. The command ‘set -o vi’ en‐
| |
| ables vi-mode editing and places sh into vi insert mode. With vi-mode enabled, sh can be switched be‐
| |
| tween insert mode and command mode. It is similar to vi: typing ⟨ESC⟩ enters vi command mode. Hit‐
| |
| ting ⟨return⟩ while in command mode will pass the line to the shell.
| |
|
| |
|
| == EXIT STATUS == | | == EXIT STATUS == |