Questions tagged [line-editor]

The line editor in shells and other command line programs

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
288 views

Bash command not found due to stray garbage characters

What is the cause of this behavior? $ cd ../ $ bash: $'\210\210cd': command not found This happens sometimes (rarely) when I enter a command, there is no visible character preceding the cd, still it ...
3
votes
1answer
141 views

Pass 'typed text' from bash interactive shell to a command

I would like to pass whatever the user has typed in a bash shell to a command, when the user presses a keyboard binding|shortcut For example : Lets say Ctrl+b is our binding bind '"\C-b": "myCommand....
3
votes
1answer
631 views

bash/gnu readline multiline command: move row up/down

How to move one editing row up (back) or down (forward) in a multi-line command in bash/readline? Somethnig like gj/gk in Vim.
2
votes
0answers
299 views

Why does select-word-style stop me from using backward-kill-word for leading whitespace?

If I have just some whitespace at be beginning of my zsh prompt, I can usually ^W (backward-kill-word) it away. However, as soon as I load select-word-style - even if I don't select any special style -...
2
votes
0answers
614 views

Tcsh: Searching history using Ctrl-P and Ctrl-N

What are the equivalent functions in tcsh for the following zsh functions? up-line-or-history history-beginning-search-backward down-line-or-history history-beginning-search-forward I have the ...
1
vote
0answers
19 views

edit-and-execute-command interrupted by SIGTSTP

I've been using bash's edit-and-execute-command function: edit-and-execute-command (C-x C-e) Invoke an editor on the current command line, and execute the result as shell commands. Bash ...
1
vote
0answers
287 views

paste clipboard text plus string with .inputrc

I've got in my .inputrc something like "\C-v": "script.sh " I use a link from my clipboard as a parameter for the script, so I type ctrl-v and then paste the link, and then hit enter. So I've seen ...