From: Roger Pack Date: 2008-11-17T23:10:30+09:00 Subject: [ruby-core:19973] Re: any ideas on why quoted parameters fail in mingw? Interesting. So...of my 3 windows machines, 2 it fails [XP] and 1 is works [vista]. Weird. At least 1.9 works on all 3 :) Microsoft Windows XP [Version 5.1.2600] "version 2002" SP 3 -=R On Sun, Nov 16, 2008 at 4:14 AM, Luis Lavena wrote: > On Sun, Nov 16, 2008 at 2:58 AM, Roger Pack wrote: >> Anybody have any thoughts why >> >> c:\dev>ruby -e " \"3\" " >> -e:1: unterminated string meets end of file >> >> c:\dev>ruby19 -e " \"3\" " >> # works successfully >> >> might be occuring with mingw? It appears to be either nuking the very >> lastmost position of the string or perhaps missing a null terminator: >> >> c:\dev>c:\ruby18\bin\ruby -e " \"3\" " \""\" >> -e:1: syntax error, unexpected tCONSTANT, expecting $end >> "3" """"NAME=��� >> ^ >> >> But it doesn't occur in 1.9 >> >> Thoughts? > > I'm still trying to see why this happens to you and nobody else :-) > > Microsoft Windows XP [Version 5.1.2600] (SP2) > > chcp > Active code page: 437 > > mode > > Status for device CON: > ---------------------- > Lines: 1000 > Columns: 80 > Keyboard rate: 31 > Keyboard delay: 1 > Code page: 437 > > Luis@KEORE (D:\Users\Luis) > $ ruby -v > ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-mingw32] > > Luis@KEORE (D:\Users\Luis) > $ ruby -e " \"3\" " > > Luis@KEORE (D:\Users\Luis) > $ ruby -e " \"3\" " \""\" > > (Just in case, my prompt was changed to mimic *nix, but is cmd.exe, not bash). > > -- > Luis Lavena > AREA 17 > - > Human beings, who are almost unique in having the ability to learn from > the experience of others, are also remarkable for their apparent > disinclination to do so. > Douglas Adams > -- Thanks! -=R