#988 MacOSX: Value Function Does not delete values

v4.1
closed
nobody
None
5
2012-08-14
2011-02-20
Bruce
No

Rexx Language Reference says in section 7.4.71 "To delete an environment variable use the Nil object as the newvalue." On Mac OS X systems this doesn't work.

This Program:

!/usr/bin/rexx

env = "ENVIRONMENT";
A = "FRED IS SET"

say "Setting FRED: "value("FRED",A,env)
say "FRED is set: "value("FRED",,env)
say "Deleting FRED: "value("FRED",.NIL,env)
say "FRED is now UNSET: "value("FRED",,env)

exit

Has this output.

Setting FRED:
FRED is set: FRED IS SET
Deleting FRED: FRED IS SET
FRED is now UNSET: FRED IS SET

Discussion

  • Bruce

    Bruce - 2011-02-20

    example program

     
  • Mark Miesfeld

    Mark Miesfeld - 2011-02-20

    We already have a bug open for this problem:

    2871451 OS X value() fails to delete variable from ENVIRONMENT

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks