lua-users home
lua-l archive

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

Since people are discussing require paths on Windows, this is perhaps a good time to point out that the semi-colon is actually (and surprisingly!) a valid character in a directory name/path.

So, strictly speaking: in the current setup you need to be careful if you have no particular control over where your Lua-based software runs from on a Windows machine.

That is, if a part of your system ends up in a directory containing a semi-colon, the require mechanism will most likely not be able to locate it!

It's probably nothing to lose too much sleep over, since semi-colons in directory names are (probably) fairly rare. But I think if you are developing for Windows you should be aware of this potential issue.


P.S. Yes, this is a been-there-done-that [so-you-dont-have-to] story(tm).
no signature is a signature.