bugGNU nano - Bugs: bug #53779, when reading from standard input,...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53779: when reading from standard input, one wants to finish, not abort

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 28 Apr 2018 11:50:33 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 01 May 2018 05:29:06 PM UTC, comment #2: 

Changed in git, commit 0da554e6.

Benno Schulenberg <bens>
Group administrator
Sat 28 Apr 2018 03:53:54 PM UTC, comment #1: 

Additionally, when you use ^C to conclude the input, and when you finish editing and exit from nano, it says on the terminal: "stdin: Interrupted system call".  This is ugly.  When you use ^D, there is no such error message.  (There is another message, "Read xx lines", but it mostly gets overwritten by the prompt.  It would be better if it didn't get oberwritten.)

Benno Schulenberg <bens>
Group administrator
Sat 28 Apr 2018 11:50:33 AM UTC, original submission:  

When running 'nano -' to read text from standard input, nano prints the following "helpful" message:

  Reading from stdin, ^C to abort

But "abort" to me means: cancel, discard everything, don't even start nano.  But that is not what happens when one presses ^C.

Nano starts, and all the lines that were completed are present in the buffer; only the line of text that hasn't been terminated with an <Enter> (if any) has been discarded.  I think this latter behavior is unwanted.  The user typed something, so eat it up.  It is easy enough to discard it later: ^K, done.

So, I propose that nano instead shows this message:

  Reading from standard input; type ^D or ^D^D to finish.

The ^D is enough right after an <Enter>; after some text, two ^Ds are required.  There is no need to mention that ^C will finish the input too.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-16 bens Open/ClosedOpen Closed
    2018-05-01 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code