[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Where am I?
- From: "Aaron Brown" <aaron-lua@...>
- Date: Fri, 5 Nov 2004 12:41:58 -0500
MessagePhilip Plumlee wrote:
> If the script were C:/foo/bar.pl, then $^ might return
> C:/foo/ or C:/foo/bar.pl.
The zeroth element of the global table 'arg' will contain
the scriptname, but not necessarily in absolute form. (Lua
is written in pure ANSI C, which has no concept of
directories.) If you want anything fancier than this, you
have to either roll your own (with os.execute, for instance)
or use the lposix library: