* [ruby-core:108054] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe
@ 2022-03-24 20:23 pjones (Peter Jones)
2022-03-24 20:24 ` [ruby-core:108055] " jeremyevans0 (Jeremy Evans)
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pjones (Peter Jones) @ 2022-03-24 20:23 UTC (permalink / raw)
To: ruby-core
Issue #18657 has been reported by pjones (Peter Jones).
----------------------------------------
Bug #18657: IRB raises exception when stdout is a pipe
https://bugs.ruby-lang.org/issues/18657
* Author: pjones (Peter Jones)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-03-24T16:14:55Z master 33b13bd9f1) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
When piping stdout to another process IRB fails:
```
lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY)
```
For example:
```
echo n=1 | irb | cat
```
This bug was introduced in e468d9f49ca34f713c030c623f655a40370e186d and triggered by 8f9b1902f48b413bd161666630c878ad58418c04 and 555ea8334451c5ccd881e68b8b7ddc15745e66e3.
The attached patch fixes the bug and includes a test to demonstrate the issue.
---Files--------------------------------
ruby-irb.patch (1.26 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:108055] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe
2022-03-24 20:23 [ruby-core:108054] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe pjones (Peter Jones)
@ 2022-03-24 20:24 ` jeremyevans0 (Jeremy Evans)
2022-06-08 15:34 ` [ruby-core:108807] " jeremyevans0 (Jeremy Evans)
2022-11-29 1:04 ` [ruby-core:111042] " hsbt (Hiroshi SHIBATA)
2 siblings, 0 replies; 4+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2022-03-24 20:24 UTC (permalink / raw)
To: ruby-core
Issue #18657 has been updated by jeremyevans0 (Jeremy Evans).
Can you please submit this as a pull request upstream?: https://github.com/ruby/irb/pulls
----------------------------------------
Bug #18657: IRB raises exception when stdout is a pipe
https://bugs.ruby-lang.org/issues/18657#change-97018
* Author: pjones (Peter Jones)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-03-24T16:14:55Z master 33b13bd9f1) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
When piping stdout to another process IRB fails:
```
lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY)
```
For example:
```
echo n=1 | irb | cat
```
This bug was introduced in e468d9f49ca34f713c030c623f655a40370e186d and triggered by 8f9b1902f48b413bd161666630c878ad58418c04 and 555ea8334451c5ccd881e68b8b7ddc15745e66e3.
The attached patch fixes the bug and includes a test to demonstrate the issue.
---Files--------------------------------
ruby-irb.patch (1.26 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:108807] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe
2022-03-24 20:23 [ruby-core:108054] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe pjones (Peter Jones)
2022-03-24 20:24 ` [ruby-core:108055] " jeremyevans0 (Jeremy Evans)
@ 2022-06-08 15:34 ` jeremyevans0 (Jeremy Evans)
2022-11-29 1:04 ` [ruby-core:111042] " hsbt (Hiroshi SHIBATA)
2 siblings, 0 replies; 4+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2022-06-08 15:34 UTC (permalink / raw)
To: ruby-core
Issue #18657 has been updated by jeremyevans0 (Jeremy Evans).
irb pull request for this issue: https://github.com/ruby/irb/pull/353
----------------------------------------
Bug #18657: IRB raises exception when stdout is a pipe
https://bugs.ruby-lang.org/issues/18657#change-97879
* Author: pjones (Peter Jones)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-03-24T16:14:55Z master 33b13bd9f1) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
When piping stdout to another process IRB fails:
```
lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY)
```
For example:
```
echo n=1 | irb | cat
```
This bug was introduced in e468d9f49ca34f713c030c623f655a40370e186d and triggered by 8f9b1902f48b413bd161666630c878ad58418c04 and 555ea8334451c5ccd881e68b8b7ddc15745e66e3.
The attached patch fixes the bug and includes a test to demonstrate the issue.
---Files--------------------------------
ruby-irb.patch (1.26 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:111042] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe
2022-03-24 20:23 [ruby-core:108054] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe pjones (Peter Jones)
2022-03-24 20:24 ` [ruby-core:108055] " jeremyevans0 (Jeremy Evans)
2022-06-08 15:34 ` [ruby-core:108807] " jeremyevans0 (Jeremy Evans)
@ 2022-11-29 1:04 ` hsbt (Hiroshi SHIBATA)
2 siblings, 0 replies; 4+ messages in thread
From: hsbt (Hiroshi SHIBATA) @ 2022-11-29 1:04 UTC (permalink / raw)
To: ruby-core
Issue #18657 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Open to Closed
This patch has been merged at https://github.com/ruby/irb/pull/353
----------------------------------------
Bug #18657: IRB raises exception when stdout is a pipe
https://bugs.ruby-lang.org/issues/18657#change-100295
* Author: pjones (Peter Jones)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.2.0dev (2022-03-24T16:14:55Z master 33b13bd9f1) [x86_64-linux]
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
When piping stdout to another process IRB fails:
```
lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY)
```
For example:
```
echo n=1 | irb | cat
```
This bug was introduced in e468d9f49ca34f713c030c623f655a40370e186d and triggered by 8f9b1902f48b413bd161666630c878ad58418c04 and 555ea8334451c5ccd881e68b8b7ddc15745e66e3.
The attached patch fixes the bug and includes a test to demonstrate the issue.
---Files--------------------------------
ruby-irb.patch (1.26 KB)
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-29 1:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 20:23 [ruby-core:108054] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe pjones (Peter Jones)
2022-03-24 20:24 ` [ruby-core:108055] " jeremyevans0 (Jeremy Evans)
2022-06-08 15:34 ` [ruby-core:108807] " jeremyevans0 (Jeremy Evans)
2022-11-29 1:04 ` [ruby-core:111042] " hsbt (Hiroshi SHIBATA)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).