[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments)
- From: Petite Abeille <petite.abeille@...>
- Date: Mon, 7 Apr 2014 22:26:05 +0200
On Apr 7, 2014, at 10:01 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
> What's wrong with `lua < file.lua`?
Arghhh… nothing :)
Used to use ‘-‘ as in:
- stop handling options and execute stdin
Never noticed it working without ‘-‘ :))
> Well, if I have to deal with an application directory (scripts, modules, and support files bundled together in a directory -- which is *the* use case for `require_here`), I almost always use a symlink to put the scripts into my `$PATH`, so ... not good enough for me[*].
I recently developed the habit of starting my Lua script as such:
#!/bin/bash
SELF=$(readlink /proc/$$/fd/255)
SELFNAME=$(basename $SELF)
BASEDIR=$(dirname $SELF)
$LUABIN - ${SELFNAME} ${BASEDIR} "$@" <<\EOF
EOF
(Don’t ask)
- References:
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Luiz Henrique de Figueiredo
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Coroutines
- Re: Running multiple threads in a lua state, Sean Conner
- Re: Running multiple threads in a lua state, Rena
- Re: Running multiple threads in a lua state, Coroutines
- Suggestion for Lua 5.3.0 -- require search paths, tonyp
- Re: Suggestion for Lua 5.3.0 -- require search paths, Petite Abeille
- Re: Suggestion for Lua 5.3.0 -- require search paths, Chris Emerson
- Re: Suggestion for Lua 5.3.0 -- require search paths, steve donovan
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Tony Papadimitriou
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Petite Abeille
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Philipp Janda
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Petite Abeille
- Re: Suggestion for Lua 5.3.0 -- require search paths (and mathlib comments), Philipp Janda