lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Thomas,

On 7/21/08, Thomas Lauer <thomas.lauer@virgin.net> wrote:
> Actually, this seems to be an artifact of CMD.EXE and not so much a rule
> in Windows. (Rules in Windows? Wonder what that means anyway;-)
>
> At least my command-line interpreter (the delectable JPSoft 4NT/Take
> Command) as well as the Start menu Run... box execute both commands
> above without problem. (Indeed, I'll take this opportunity to point
> interested readers to the freeware version of the JPSoft CLI (called
> TCC/LE) which beats CMD.EXE hands down in terms of features and
> usability.)
>

Well, it's actually system() that gets invoked by os.execute(). And
system() in turn goes and finds CMD.EXE to execute your command line.
And, yes, I hate Windows too. Took me two days to figure out the weird
quoting, for example.

I guess if you want to use some other command interpreter on Windows,
you'll need to write a wrapper function for that using _exec() et al.

Robby