Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] What is wrong with this?

From: raimunddold::web::de at: 11-Apr-2003 17:35

Hi, I just read the "Rebol and the Shell" tutorial and tried out the following (called args.r): REBOL [] foreach item [ system/user/home system/script/path system/options/path system/script/args ][ print [item "==" mold item] ] To my surprise, the result is the following: REBOL/View 3-Aug-2002 Copyright 2000-2002 REBOL Technologies. All rights reserved. REBOL is a trademark of REBOL Technologies. WWW.REBOL.COM Type DESKTOP or SET-USER for settings. Internet Protocols 23-May-2002/6:04:11 REBOL Network Auto-Configure 23-May-2002/5:48 Installer 23-May-2002/5:48 Dynamic Library Access 23-May-2002/5:48 Command Shell Access 23-May-2002/5:48 Graphics 23-May-2002/5:48 View and VID 23-May-2002/5:48 View Desktop 23-May-2002/5:48 Sound 23-May-2002/5:48 Preferences 23-May-2002/5:48 Encryption 23-May-2002/5:48 Big Numbers 23-May-2002/5:48 DH/DSA Encryption 23-May-2002/5:48 RSA Encryption 23-May-2002/5:48 System port 23-May-2002/5:48 Licensing 23-May-2002/5:48 *** REBOL/View license only. No REBOL/View/Pro features. *** Obtain REBOL/View/Pro from
>> do %args.r
system/user/home == system/user/home system/script/path == system/script/path system/options/path == system/options/path system/script/args == system/script/args
If I do the following from the rebol console:
>> mold system/user/home
== "%/home/raimund/" It seems to work. What is wrong with the script? Raimund