Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    The next stop is unix.stackexchange.com/a/182071/5132 , and the stop after that is the further reading there. (-: Commented Mar 18, 2019 at 16:24
  • 3
    Be careful with CTRL+D. In bash, if you have input any characters in your prompt, hitting CTRL+D will execute it the same way Enter would. In other words, don’t type out an rm command and then hit CTRL+D if you didn’t want to execute it. I don’t see this behavior in ksh. Commented Mar 18, 2019 at 18:28
  • 2
    @Peschke On every system I've ever used Ctrl+D does nothing if I've typed something. I've never seen the behavior you describe. Commented Mar 18, 2019 at 19:19
  • 1
    @JohnKugelman I tested and confirmed the behavior at the time of my comment with bash on RHEL 7.5. Commented Mar 18, 2019 at 19:21
  • 3
    Peschke is using the vi terminal input bindings. Commented Mar 19, 2019 at 11:20