metaeducation / rebol-issues

6 stars 1 forks source link

CD (was: CHANGE-DIR) does not allow anything but direct use of file! #272

Open rebolbot opened 17 years ago

rebolbot commented 17 years ago

Submitted by: henrikmk

bc.. >> a: what-dir

a == %/C/Programmer/altme/worlds/r3-alpha/files/Examples/ type? a == file! change-dir a \ Script error: change-dir does not allow word! for its path argument

p.

Works fine in R2.

CC - Data [ Version: Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:none ]

rebolbot commented 16 years ago

Submitted by: admin

It works fine for me. What version are you using?

Sorry, seems to be 'cd that generates that problem, and not 'change-dir. -- Henrik

A doc note about this function:

CD allows files and words. If the word has no value, it will use it literally as the file name. For example:

bc.. cd %cvs cd cvs cd ..

p.

This is a convenience in the CD shortcut, and it is not part of the CHANGE-DIR function definition. -Carl

There is a missing get/all in the CD source that caused this bug. This is still not fixed in the current build 81. The fixed source for CD is in Source/mezz/cd.r

bc.. -BrianH

p.