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

What is wrong with this?

 [1/3] 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 1.2.8.4.2 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 1.59.2.13 23-May-2002/6:04:11 REBOL Network Auto-Configure 1.6.2.2 23-May-2002/5:48 Installer 1.36.2.7 23-May-2002/5:48 Dynamic Library Access 1.4.2.1 23-May-2002/5:48 Command Shell Access 1.5.2.4 23-May-2002/5:48 Graphics 1.1.2.2 23-May-2002/5:48 View and VID 1.155.2.3 23-May-2002/5:48 View Desktop 1.26.2.8 23-May-2002/5:48 Sound 1.2.2.2 23-May-2002/5:48 Preferences 1.51.2.6 23-May-2002/5:48 Encryption 1.3.2.2 23-May-2002/5:48 Big Numbers 1.2.2.2 23-May-2002/5:48 DH/DSA Encryption 1.2.2.2 23-May-2002/5:48 RSA Encryption 1.3.2.2 23-May-2002/5:48 System port 1.1.2.3 23-May-2002/5:48 Licensing 1.8.2.3 23-May-2002/5:48 *** REBOL/View license only. No REBOL/View/Pro features. *** Obtain REBOL/View/Pro from http://www.rebol.com/view-sales.html
>> 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

 [2/3] from: antonr:iinet:au at: 12-Apr-2003 3:16


Path evaluation changed in recent rebol versions. Try: print [item "==" do reduce [item]] Anton Rolls.

 [3/3] from: gscottjones:mchsi at: 11-Apr-2003 14:52


From: "Raimond"
> > I just read the "Rebol and the Shell" tutorial and tried out the > > following
<<quoted lines omitted: 10>>
> > print [item "==" mold item] > > ]
... From: "Anton"
> Path evaluation changed in recent rebol versions. > Try: > > print [item "==" do reduce [item]]
Hi, Raimond, Just to expand a bit on what Anton said, refer to: http://www.reboltech.com/downloads/changes.html#sect5.2. Another way is: foreach item [ system/user/home system/script/path system/options/path system/script/args ][ print [item "==" do mold item] ] --Scott Jones

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted