How do I edit the current empty line in an editor, without having it filled with previous command?How can I...
What are the arguments for California’s nonpartisan blanket (jungle) primaries?
Why should I cook the flour first when making bechamel sauce?
Advice for paying off student loans and auto loans now that I have my first 'real' job
Why limit to revolvers?
Ethical for a company to ask employees to move furniture on the weekend?
Why doesn't philosophy have higher standards for its arguments?
What are some symbols representing peasants/oppressed persons fighting back?
Confusion about a proof of a limit formula
What do these three diagonal lines that cross through three measures and both staves mean, and what are they called?
Why don't commercial aircraft adopt a slightly more seaplane-like design to allow safer ditching in case of emergency?
Is this artwork (used in a video game) real?
Why isn't aluminium involved in biological processes?
Is there a way to handmake alphabet pasta?
MQTT subscription topic match
What are "full piece" and "half piece" in chess?
If a player tries to persuade somebody, what should that creature roll not to be persuaded?
Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?
Remove cardinal direction letters
What is this called? A tube flange bearing threaded for threaded pushrod
Why run a service as a system user?
I do not have power to all my breakers
Is dividends exclusively a part of earnings?
Can both line and load go to same screw on a GFCI outlet?
Why did Steve Rogers choose Sam in Endgame?
How do I edit the current empty line in an editor, without having it filled with previous command?
How can I get back into “normal” edit-mode after pressing esc in zsh (vi mode)?How to invoke shell function in string? (bash)How to enable yank-nth-arg using vi mode on Bash?login shell (bash) - how to we invoke a login shellHow to enable bash completion in vi mode on Synology DSM6Bash + urxvt: delay after ESC in Vi modeUnexpected behaviour from Readline's bind commandIs it possible to add ci" (or ci', ci{, etc.) to vi mode in bash?How to understand Bash privileged mode?Does . invoke sh and source invoke bash?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Apparently since the release of bash v. 5 some weeks ago (witnessed on Arch Linux and Debian Buster), the default behaviour of invoking the editor in vi mode has changed.
set -o vi
<Esc>v
bash 4.x and earlier: an empty $EDITOR
pops up.
bash 5.x: $EDITOR
opens with the last executed command (resembling the fc
command).
Accidental opening of the command-line editor and violently :q!
ing it leads to the repeated execution of the last command.
For a long-time vi-mode addict, this is unexpected behaviour and violates the principle of least astonishment.
How to revert to the old empty-editor state?
bash
add a comment |
Apparently since the release of bash v. 5 some weeks ago (witnessed on Arch Linux and Debian Buster), the default behaviour of invoking the editor in vi mode has changed.
set -o vi
<Esc>v
bash 4.x and earlier: an empty $EDITOR
pops up.
bash 5.x: $EDITOR
opens with the last executed command (resembling the fc
command).
Accidental opening of the command-line editor and violently :q!
ing it leads to the repeated execution of the last command.
For a long-time vi-mode addict, this is unexpected behaviour and violates the principle of least astonishment.
How to revert to the old empty-editor state?
bash
add a comment |
Apparently since the release of bash v. 5 some weeks ago (witnessed on Arch Linux and Debian Buster), the default behaviour of invoking the editor in vi mode has changed.
set -o vi
<Esc>v
bash 4.x and earlier: an empty $EDITOR
pops up.
bash 5.x: $EDITOR
opens with the last executed command (resembling the fc
command).
Accidental opening of the command-line editor and violently :q!
ing it leads to the repeated execution of the last command.
For a long-time vi-mode addict, this is unexpected behaviour and violates the principle of least astonishment.
How to revert to the old empty-editor state?
bash
Apparently since the release of bash v. 5 some weeks ago (witnessed on Arch Linux and Debian Buster), the default behaviour of invoking the editor in vi mode has changed.
set -o vi
<Esc>v
bash 4.x and earlier: an empty $EDITOR
pops up.
bash 5.x: $EDITOR
opens with the last executed command (resembling the fc
command).
Accidental opening of the command-line editor and violently :q!
ing it leads to the repeated execution of the last command.
For a long-time vi-mode addict, this is unexpected behaviour and violates the principle of least astonishment.
How to revert to the old empty-editor state?
bash
bash
edited 38 mins ago
muru
41.7k5 gold badges101 silver badges175 bronze badges
41.7k5 gold badges101 silver badges175 bronze badges
asked Feb 5 at 0:31
H. WeirauchH. Weirauch
183 bronze badges
183 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Unfortunately, this has turned out to be a real bug in bash, that has already found its way into major distribution releases like, amongst others, Debian Buster and FreeBSD 11.3 and 12.0.
At least for Arch Linux, there is bash-devel-git that is not affected.
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498698%2fhow-do-i-edit-the-current-empty-line-in-an-editor-without-having-it-filled-with%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Unfortunately, this has turned out to be a real bug in bash, that has already found its way into major distribution releases like, amongst others, Debian Buster and FreeBSD 11.3 and 12.0.
At least for Arch Linux, there is bash-devel-git that is not affected.
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
add a comment |
Unfortunately, this has turned out to be a real bug in bash, that has already found its way into major distribution releases like, amongst others, Debian Buster and FreeBSD 11.3 and 12.0.
At least for Arch Linux, there is bash-devel-git that is not affected.
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
add a comment |
Unfortunately, this has turned out to be a real bug in bash, that has already found its way into major distribution releases like, amongst others, Debian Buster and FreeBSD 11.3 and 12.0.
At least for Arch Linux, there is bash-devel-git that is not affected.
Unfortunately, this has turned out to be a real bug in bash, that has already found its way into major distribution releases like, amongst others, Debian Buster and FreeBSD 11.3 and 12.0.
At least for Arch Linux, there is bash-devel-git that is not affected.
edited 39 mins ago
muru
41.7k5 gold badges101 silver badges175 bronze badges
41.7k5 gold badges101 silver badges175 bronze badges
answered 6 hours ago
H. WeirauchH. Weirauch
183 bronze badges
183 bronze badges
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
add a comment |
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
1
1
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
some links to the bug-bash discussions and/or git commits will not hurt.
– Uncle Billy
6 hours ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498698%2fhow-do-i-edit-the-current-empty-line-in-an-editor-without-having-it-filled-with%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown