[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: "wmk -a" and auto-adjusted variables?
- From: Denis Barbier <nospam@thanx>
- Date: Fri, 9 Jul 1999 16:40:36 +0200 (CET)
On Fri, 9 Jul 1999 plonka@doit.wisc.edu wrote:
[...]
> As I said, personally, I liked the idea of adding a wmk switch that causes
> it to remain in the same directory in which it was invoked because that's
> the easiest way I can think of to get the "wmk -DNAME~PATH sub-dir" to work
> as desired. However, since you don't care for that, perhaps the wmk
> man-page could read:
>
> CAVEAT
>
> Auto-adjusted variables specfied as "-DNAME~PATH" on the wmk command-
> line will not necessarily have the same effect as a similar definition
> in a "./.wmlrc" file. This is because, when processing sub-directories,
> wmk changes its working directory to each of those directories, which
> can influence the interpolation of such auto-adjusted variables.
> When specified on the command line, such variables are interpolated
> with respect to wml's current working directory at the time of its
> invocation. So, if you wish such variables to be interpolated relative
> to wmk's current working directory at the time of its invocation, one
> can work-around this issue by specifying "-DNAME~PATH" in a ".wmlrc"
> in that directory rather than specifying it on the wmk command-line.
>
> Without such a warning, the only way I could find an explanation of the
> behavior I observed was to read the wmk source (and see the chdir(2) calls).
Ok, it's now in the documentation.
Thanx
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com