GNU nano - Bugs: bug #63109, piping text from stdin hangs when...
You are not allowed to post comments on this tracker with your current authentication level.
bug #63109: piping text from stdin hangs when no dash is given
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Mon 26 Sep 2022 01:23:32 PM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Tue 27 Sep 2022 10:42:47 AM UTC, comment #3: |
Benno Schulenberg <bens> |
Tue 27 Sep 2022 09:48:31 AM UTC, comment #2: The disadvantage of bailing out when standard input is still a pipe after processing all command-line arguments, is that one cannot script an operation any more, like this:
However, Vim and Emacs cannot handle this usage either, so... |
Benno Schulenberg <bens> |
Mon 26 Sep 2022 01:35:32 PM UTC, comment #1: The hanging problem exists since version 5.9, commit 8d1a666d: "give up on the input stream only after millions of errors".
|
Benno Schulenberg <bens> |
Mon 26 Sep 2022 01:23:32 PM UTC, original submission:
To reproduce, run
See that text appears onscreen as if it is typed very quickly at the keyboard, and after the README is all there, nano hangs: typing at the keyboard does nothing. See that on the status bar it says: "[ Justified paragraph ]", which is because the linefeeds in the file are seen as ^Js.
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-11-16 | bens | Open/Closed | Open | Closed | |
2022-09-27 | bens | Status | In Progress | Fixed | |
2022-09-26 | bens | Status | None | In Progress | |
2022-09-26 | bens | Summary | when piping text from stdin, nano hangs when no dash is given | piping text from stdin hangs when no dash is given |
Powered by Savane 3.13-f8d8.
Corresponding source code
Fixed in git, commit 8d7b716e, by dying when the input is not a TTY (after all command-line arguments have been processed).