forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
angerangel edited this page Mar 15, 2013
·
1 revision
CD 'path
Change directory (shell shortcut function).
CD is a function value.
- path -- Accepts %file, :variables and just words (as dirs) (file! word! path! unset! string!)
#SOURCE
cd: make function! [ [
"Change directory (shell shortcut function)."
'path [file! word! path! unset! string!] "Accepts %file, :variables and just words (as dirs)"
][
switch type?/word :path [
unset! [print what-dir]
file! [change-dir path]
string! [change-dir to-rebol-file path]
word! path! [change-dir to-file path]
]
] ]