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 126.96.36.199.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 188.8.131.52 23-May-2002/6:04:11 REBOL Network Auto-Configure 184.108.40.206 23-May-2002/5:48 Installer 220.127.116.11 23-May-2002/5:48 Dynamic Library Access 18.104.22.168 23-May-2002/5:48 Command Shell Access 22.214.171.124 23-May-2002/5:48 Graphics 126.96.36.199 23-May-2002/5:48 View and VID 188.8.131.52 23-May-2002/5:48 View Desktop 184.108.40.206 23-May-2002/5:48 Sound 220.127.116.11 23-May-2002/5:48 Preferences 18.104.22.168 23-May-2002/5:48 Encryption 22.214.171.124 23-May-2002/5:48 Big Numbers 126.96.36.199 23-May-2002/5:48 DH/DSA Encryption 188.8.131.52 23-May-2002/5:48 RSA Encryption 184.108.40.206 23-May-2002/5:48 System port 220.127.116.11 23-May-2002/5:48 Licensing 18.104.22.168 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
> > 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
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted