The command CHDIR
takes one argument, a directory to change to. This
command is implemented to simplify the working with includefile
(see
includefile
in yodlmacros(7)
).
As a demonstration by example, consider the
following fragment:
includefile(subdir/onefile) includefile(subdir/anotherfile) includefile(subdir/yetanotherfile)
This fragment can be changed to:
CHDIR(subdir) includefile(onefile) includefile(anotherfile) includefile(yetanotherfile) CHDIR(..)
The current directory, as given to CHDIR
, only affects how includefile
will search for its files.
Please send Yodl questions and comments to yodl@icce.rug.nl.
Please send comments on these web pages to (address unknown)
Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.