forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
In dir
angerangel edited this page Mar 19, 2013
·
1 revision
IN-DIR dir block
Evaluate a block while in a directory.
IN-DIR is a function value.
- dir -- Directory to change to (changed back after) (file!)
- block -- Block to evaluate (block!)
#SOURCE
in-dir: make function! [ [
"Evaluate a block while in a directory."
dir [file!] "Directory to change to (changed back after)"
block [block!] "Block to evaluate"
/local old-dir
][
old-dir: what-dir
change-dir dir
also do block change-dir old-dir
] ]