Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 2 comments
Closed
Labels
CC.resolved Issue with CureCode status built, tested or complete Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Siskin-Bot commented Feb 15, 2020

Submitted by: henrikmk

>> 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 

Works fine in R2.


Imported from: CureCode [ Version: Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#272

Comments:

Rebolbot commented on Apr 2, 2008:

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:

cd %cvs
cd cvs
cd ..

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

-BrianH


Rebolbot added the Type.bug on Jan 12, 2016


Oldes added a commit to Oldes/Rebol3 that referenced this issue on Jun 8, 2018:
FEAT/FIX: improved CD shortcut command


@Oldes
Copy link
Owner

Oldes commented Apr 16, 2020

Related: #2310

@Oldes
Copy link
Owner

Oldes commented Apr 16, 2020

>> cd .
== %/X/GIT/Rebol/

>> cd ..
== %/X/GIT/

>> a: %/X/GIT/Rebol/ cd a
== %/X/GIT/Rebol/

@Oldes Oldes closed this as completed Apr 16, 2020
@Siskin-Bot Siskin-Bot added the CC.resolved Issue with CureCode status built, tested or complete label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CC.resolved Issue with CureCode status built, tested or complete Type.bug
Projects
None yet
Development

No branches or pull requests

2 participants