stream(QUERY EXISTS) unexpected answer

Help
2009-05-02
2012-08-14
  • For an unknown file, the stream() function states that it exists.
    Is it a bug of this REXX version, in the computer or user error ?

    please find below a screenshot from my bash console.

    cheers, Uli


    ulmo:/opt/bsf4rexx # rexxtry.rex

    REXX-ooRexx_4.0.0(MT) 6.03 30 Apr 2009
    rexxtry.rex lets you interactively try REXX statements.
    Each string is executed when you hit Enter.
    Enter 'call tell' for a description of the features.
    Go on - try a few... Enter 'exit' to end.

    file="/sdfs/sfasdfasdf/sdfsdf.sdfs"
    ............................................... rexxtry.rex on LINUX
    say stream(file)
    UNKNOWN
    ............................................... rexxtry.rex on LINUX
    say stream(file,'c','QUERY EXISTS')
    /sdfs/sfasdfasdf/sdfsdf.sdfs
    ............................................... rexxtry.rex on LINUX
    file="sdfs/sfasdfasdf/sdfsdf.sdfs"
    ............................................... rexxtry.rex on LINUX
    say stream(file,'c','QUERY EXISTS')
    /opt/bsf4rexx/sdfs/sfasdfasdf/sdfsdf.sdfs
    ............................................... rexxtry.rex on LINUX

    Draft - SVN Rev 4354 416 ooRexx Reference Version 4.0.0 (beta)

    QUERY EXISTS
    returns the full path specification of the named stream, if it exists, or a null string.
    stream("..\file.txt","c","query exists")
    A sample output might be:
    c:\data\file.txt

     
    • Rick McGuire
      Rick McGuire
      2009-05-02

      Please open a bug report on this error, including a sample program to help recreate and debug the problem. Please also give some specific details on which flavor of Linux you're running on, including whether this is 32-bit or 64-bit.