lua-users home
lua-l archive

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


  I've just released a patched version of org.conman.env, a Lua module that
loads all currently defined environment variables into a Lua table.  This
patched version includes two bug fixes:

1) Prevents a crash if an environment variable is not of the proper form of
   "name=value".

2) Per this advisory: http://lwn.net/Articles/678148/ I changed the default
   behavior to return the first environment variable of a given name (the
   behavior of getenv()) instead of the last (the previous behavior of
   org.conman.env).

  The module can be installed via LuaRocks.

  -spc