(type egg)
(signature "with-current-directory egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/with-current-directory" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg")) (section 2 "with-current-directory" (toc)) (section 2 "Description" (p "Convenience procedure for temporarily changing directories.") (p "The source for this extension is available " (link "https://git.foldling.org/chicken-with-current-directory.git" "here") ".")) (section 2 "Usage" (def (sig (procedure "(with-current-directory path thunk)" (id with-current-directory))) (p "Changes directory to the given " (tt "path") ", calls " (tt "thunk") ", and restores the original working directory afterwards.") (p "Note that " (b "this procedure is not thread-safe") ". The current directory is a process-level value, and this extension makes no attempt to preserve thread-specific working directories across interrupts. If the calling thread is preempted or yields before the thunk's body returns, the given path will persist as the process's current working directory at least until the calling thread is resumed."))) (section 2 "Author" (p (int-link "/users/evan-hanson" "Evan Hanson"))) (section 2 "License" (p "Public Domain"))))
