Choonster wrote:
> I just installed the rock on an Ubuntu VM with a fresh copy of
> LuaRocks and the Lua file was installed as "Readline.lua" rather
> than "readline.lua", which caused `require("readline")` to fail.
> Renaming the file to "readline.lua" allowed it to work.
> I believe it's installed this way because of the
> `Readline = "readline.lua"` line in the Rockspec.
> If you have a case-insensitive file system (which I think OS X
> uses by default), the case of the file probably doesn't matter
> to `require`.

I'm on debian stable and not using a case-insensitive file system.

I'm using  /usr/local/bin/luarocks 2.1.0
  ~> find /usr/ -name '*eadline.lua' -print
  /usr/local/share/lua/5.2/readline.lua

Has capitalisation-relevant behaviour changed since 2.1.0 ?
Would lower-case:
  readline = "readline.lua"
work on all luarocks versions ?  (eg: debian stable has 2.0.9)

If so, I've got changes to make :-(  Apart from eg: the lines:
  modules = {
    ["Terminfo"] = "Terminfo.lua"
  },
there's also the line:
  package = "Terminfo"
and yet it installed as /usr/local/share/lua/5.2/terminfo.lua and:
  local T = require 'terminfo'
works for me...

Could I just make every occurrence lowercase,
or are there some letters that need to be uppercase ?

Only really in the module:
  local C = require 'CommandLineUI'
am I attached to case, because if lower-case I'd want to spell it:
  'command_line_ui'
to separate the words...

Regards,  Peter Billam

http://www.pjb.com.au      p...@pjb.com.au     (03) 6278 9410
"Follow the charge, not the particle."  --  Richard Feynman
 from The Theory of Positrons, Physical Review, 1949


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to