Project

General

Profile

Actions

Bug #5591

closed

Windows bug when using "shortcut" syntax with output redirection

Added by jwille (Jens Wille) about 13 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
Backport:
[ruby-core:40835]

Description

How to reproduce:

---- snip ----

test.rb

puts test
---- snip ----

Start Command Prompt with Ruby 1.9.3:

$ ruby test.rb
test
$ ruby test.rb > out
$ type out
test
$ test
test
$ test > out
[BUG] rb_update_max_fd: invalid fd (1) given.
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

-- Control frame information -----------------------------------------------
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

-- C level backtrace information -------------------------------------------
C:\WINDOWS\system32\ntdll.dll(KiIntSystemCall+0x6) [0x7c91e526]
C:\WINDOWS\system32\kernel32.dll(WaitForSingleObject+0x12) [0x7c802542]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_vm_bugreport+0xf9) [0x62e5acc9]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_name_err_mesg_new+0x17a) [0x62d3a68e]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_bug+0x2f) [0x62d3b3ef]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_io_close+0x357) [0x62d63ab7]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_get_argv+0x1123) [0x62d70b9b]
C:\Ruby193\bin\msvcrt-ruby191.dll(rb_call_inits+0x83) [0x62d5e807]
C:\Ruby193\bin\msvcrt-ruby191.dll(ruby_init+0x89) [0x62d41a8d]
[0x00401355]
[0x004010b9]
[0x00401284]

-- Other runtime information -----------------------------------------------

0: can't convert false into String (TypeError)
$

Expected test > out' to behave like ruby test.rb > out'.

Bug occurs with both 1.9.3 (RubyInstaller) and 1.9.2 (Binary); 1.8.7 (RubyInstaller) behaves as expected. Tested on Windows XP Version 2002 Service Pack 3; originally reported on Windows 7.


Related issues 1 (0 open1 closed)

Related to Backport193 - Backport #5593: Windows上で \\.\ から始まるデバイスをopenするとクラッシュClosed11/08/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0