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

[REBOL] Creating an absolute path filename via join on directory and filename Re

From: galtbarber:mailandnews at: 28-Aug-2000 15:54

Shouldn't they return the same thing on Rebol? It seems like they should. Is this a bug? I think RT still have some philosophy stuff to work out regarding platform issues, meaning of to binary! and sharing objects created on one system with another system... Even if it is cool for Unix wizards to have whatever this info is, it will be a drag for them if they write a script using that info and expecting it to work everywhere... -Galt
>===== Original Message From [joel--neely--fedex--com] >Without the final '/', read attempts to access the directory as an actual >file. On mess-doss this causes an error, while on *nix it returns some >nice binary stuff which only wizards know how to use. > >With the final '/', read returns a block of names found within the directory. > >For example, in the MICROS~1 world: > >>> foo: read %Examples >** Access Error: Cannot open /C/bin/REBOL/Examples. >** Where: foo: read %Examples >>> foo: read %Examples/ >== [%all.r %index.html %webprint.r %webget.r %webgetter.r %weblib.r %websend. >r %webfind.r %webfinder.r %webcheck.r %webloop.r %webt... >>> > >And in the *nix world: > >>> foo: read %java >==
>^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^... >>> foo: read %java/ >== [%classes/] >>> > >-jn- > >[anton--globalcenter--net--au] wrote: >> >> Hi, >> >> an absolute path is like this: >> %/c/cygwin/ >> %/d/games/afile >> etc.. >> >> Hope that's what you're after. >> By the way, somebody once said it's better to specify dirs with the '/' on
the end. I forget why...
>> >> Anton. >> >> [princepawn--lycos--com] wrote: >> >> > I want to create a configuration file which loads in some functions I
wrote. I wrote a verbose description of the program below, but then figured: Gee, REBOL is actually more concise and easy to understand than my English!