pipe > redirection bug in Windows XP x64 Pro !!!!!?????!!!!!! 1> output.txt ?????

Discussion in 'Windows 64bit' started by Skybuck Flying, Jan 20, 2008.

  1. Hello,

    I setup the following situations in Windows 95 and Windows XP x64 Pro
    edition with the following results:

    c:\test\sub\project1.exe (loads the parameter as textfile and shows it)
    c:\test\sub\showme.txt (contains some text)
    c:\test\runme.bat (batch file containing the following
    instructions:)

    runme.bat:

    "sub\project1.exe" "sub\showme.txt" > "sub\output.txt"

    Results:

    1. Windows 95:

    Output.txt will contain the text of showme.txt.

    2. Windows XP x64 Pro FAILS THIS TEST:

    Output.txt remains empty ?!?!?!?!

    WINDOWS XP x64 PRO FUCKS UP WITH THE FOLLWING COMMAND:

    "sub\project1.exe" \sub\showme.txt" 1>"sub\output.txt"

    NOTICE THE 1 that is not how it's supposed to look !

    It's supposed to look like Windows 95:

    "sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

    BUG BUG in XP x64 PRo ?!?!?!?!?!?!?!?!?!

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #1
    1. Advertising

  2. Apperently Windows XP and Linux have a new feature as explained in this
    link:

    http://www.thescripts.com/forum/thread574647.html

    However it breaks old batch files which is ofcourse very very very very very
    very bad.

    DUMB FUCKERS. Always support the old conventions as well.

    The simple batchfile can be fixed as follows:

    "sub\project1.exe" \sub\showme.txt" 1> "sub\output.txt"

    DUMB FUCKERS ;) =D

    2> is probably for error output or so, DUMB FUCKERS.

    just > is now BROKEN.

    DUMB FUCKERS ! =D

    WOW VERY STRANGE

    Since I modified the batchfile, NOW SUDDENLY IT ISSSSSSSSSSSSSSSSSS WORKING

    HOW STRANGE IS THAT ?! WOW SOME SERIOUS BUGS IN THERE

    "sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

    Now suddenly it works just fine ?!

    My bet is:

    1. The first batchfile probably changed the standard output to some file or
    so.

    2. And then the second time the batch file is run without the 1 in it it
    suddenly works or so.

    NICE GOING THERE PEOPLE, NICE BUGS.

    Cause I ain't dreaming, this happened.

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #2
    1. Advertising

  3. Yup it's DEFINETLY MALFUNCTIONING.

    It just opened a new ms-dos box:

    And the output.txt GETS FUCKED:

    ??

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #3
  4. Hell,

    Now it's not even working at all.

    Not even 1> is working now.

    BUGGGGGYYYY

    Output.txt gets corrupted.

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #4
  5. I think it's a Windows XP x64 Pro > redirection bug, but maybe it's a Delphi
    TStringList Bug, so I include the Delphi newsgroup as well in case it's bug
    with Delphi but probably not.

    Problem description:

    I setup the following situations in Windows 95 and Windows XP x64 Pro
    edition with the following results:

    c:\test\sub\project1.exe (loads the parameter as textfile and shows it)
    c:\test\sub\showme.txt (contains some text)
    c:\test\runme.bat (batch file containing the following
    instructions:)

    runme.bat:

    "sub\project1.exe" "sub\showme.txt" > "sub\output.txt"

    Results:

    1. Windows 95:

    Output.txt will contain the text of showme.txt.

    2. Windows XP x64 Pro FAILS THIS TEST:

    Output.txt remains empty ?!?!?!?!

    WINDOWS XP x64 PRO FUCKS UP WITH THE FOLLWING COMMAND:

    "sub\project1.exe" \sub\showme.txt" 1>"sub\output.txt"

    NOTICE THE 1 that is not how it's supposed to look !

    It's supposed to look like Windows 95:

    "sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

    BUG BUG in XP x64 PRo ?!?!?!?!?!?!?!?!?!

    OUTPUT.TXT GETS CORRUPTED no matter which pipe is used:

    1> CORRUPTS OUTPUT.TXT
    > CORRUPTS OUTPUT.TXT


    Here is the Delphi source:

    Who can make sense of this ?

    program Project1;

    {$APPTYPE CONSOLE}

    uses
    SysUtils,
    Classes;

    procedure Main;
    var
    vStringList : TstringList;
    vIndex : integer;
    begin
    vStringList := TStringList.Create;
    vStringList.LoadFromFile( ParamStr(1) );

    for vIndex := 0 to vStringList.Count-1 do
    begin
    writeln( vStringList[vIndex] );
    end;

    vStringList.Free;
    end;

    begin
    try
    Main;
    except
    on E:Exception do
    Writeln(E.Classname, ': ', E.Message);
    end;
    readln;
    end.

    Initially I also used:

    writeln( vStringList.Text );

    So I changed it to a loop in case maybe carriage return causes problems or
    so but it doesn't seem to be the case ?!

    So I believe it's a bug in X64 PRO ?!

    What you believe bitches ?! ;) =D

    STINKY SHIT, I HATE THIS KIND OF SHIT.

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #5
  6. Also be sure to test it multiple times.

    Try using stuff like:

    2> "sub\Output.txt"

    It will **** things up !

    When you try to switch back to

    1> "sub\Output.txt"

    So first things seem to be working, but then as you test more and more it
    corrupts stuff.

    Try multiple ms-dos boxes. Open/Close/Open run the batchfile.

    CRAZY.

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #6
  7. It's just not working at all now:

    project1.exe lul.txt > output.txt

    output.txt corrupted ?!

    WTF ?!

    Very strange.

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #7
  8. Look what happens:

    project1.exe lul.txt 1>output.txt

    THAT NOT CORRECT.

    X64 simply fucks up !

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #8
  9. It simply doesn't work.

    Very strange, I enter things manually without batchfile with following
    results:

    D:\test\hier>dir
    Volume in drive D has no label.
    Volume Serial Number is F046-4F7A

    Directory of D:\test\hier

    20-01-2008 22:03 <DIR> .
    20-01-2008 22:03 <DIR> ..
    20-01-2008 21:47 46 lul.txt
    20-01-2008 22:09 5 output.txt
    20-01-2008 21:50 95.232 Project1.exe
    20-01-2008 22:03 33 RunMe.bat
    4 File(s) 95.316 bytes
    2 Dir(s) 53.586.190.336 bytes free

    D:\test\hier>project1.exe lul.txt > output.txt


    D:\test\hier>type output.txt
    ?
    D:\test\hier>

    lul.txt contains:

    Ik ben een dikke lul

    That shouldn't be a problem.

    WACKY ?!?!?!?!?!?!

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #9
  10. Hmm now it's working again with a new textfile:

    D:\test\hier>project1.exe kut.txt > output.txt


    D:\test\hier>type output.txt
    **** you bitch

    D:\test\hier>


    Kut.txt doesn't contain a carriage return, maybe problems with CR and such.

    Bye,
    Skybuck
    Skybuck Flying, Jan 20, 2008
    #10
  11. Well I added some cariage returns with notepad seems to be working just
    fine:

    That leaves, maybe textpad did something strange, maybe >2 causes problems,

    Or maybe just weird bug in xp x64:

    D:\test\hier>project1.exe kut.txt > output.txt


    D:\test\hier>type output.txt
    **** you bitch


    stront

    bitch

    klotezooi


    D:\test\hier>

    Bye,
    Skybuck.
    Skybuck Flying, Jan 20, 2008
    #11
  12. Skybuck Flying

    Jud Hendrix Guest

    On Sun, 20 Jan 2008 22:15:36 +0100, "Skybuck Flying" <>
    wrote:

    >Well I added some cariage returns with notepad seems to be working just
    >fine:


    Maybe Windows doesn't like all those Dutch swearwords you're using ;-)

    j
    Jud Hendrix, Jan 20, 2008
    #12
  13. MS WORD TO THE RESCUE.

    SHAME ON ALL OTHER EDITORS because they can't teach me.

    MS Word/Office asks if I want ms-dos character or unicode characters.

    Apperently somehow lul.txt ended up as unicode I think ?

    ┬ŽIk ben een dikke lul





    That a unicode string ?!

    How the **** that happen ?

    WEIRD.

    Maybe textpad fucked it ?

    Maybe windows fucked it ?!

    Fucking strange.

    All I known is > probably hass issue's with unicode...

    Gonna post it in a new thread.

    Bye,
    Skybuck
    Skybuck Flying, Jan 20, 2008
    #13
  14. Skybuck Flying

    Jamie Guest

    Re: pipe > redirection bug in Windows XP x64 Pro !!!!!?????!!!!!!1> output.txt ?????

    Jud Hendrix wrote:

    > On Sun, 20 Jan 2008 22:15:36 +0100, "Skybuck Flying" <>
    > wrote:
    >
    >
    >>Well I added some cariage returns with notepad seems to be working just
    >>fine:

    >
    >
    > Maybe Windows doesn't like all those Dutch swearwords you're using ;-)
    >
    > j

    I thought that was their native language :)


    --
    "I'd rather have a bottle in front of me than a frontal lobotomy"

    http://webpages.charter.net/jamie_5"
    Jamie, Jan 20, 2008
    #14
  15. Charlie Russel - MVP, Jan 20, 2008
    #15
  16. Ok,

    Try it with a textfile containing unicode text ;)

    Bye,
    Skybuck.
    Skybuck Flying, Jan 22, 2008
    #16
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Silverstrand
    Replies:
    21
    Views:
    7,150
    kristain
    Mar 26, 2010
  2. Peter H
    Replies:
    43
    Views:
    1,158
    Bill M
    Dec 4, 2003
  3. Otto Pylot
    Replies:
    1
    Views:
    3,541
    LASERandDVDfan
    Apr 18, 2004
  4. Chris
    Replies:
    4
    Views:
    459
    andre
    Sep 25, 2004
  5. Skybuck Flying
    Replies:
    0
    Views:
    695
    Skybuck Flying
    Jan 20, 2008
Loading...

Share This Page