On Mon, Nov 15, 2010 at 4:27 PM, Alexander Gladysh <[email protected]> wrote:
> Hi, list.
>
> I've found that LR 2.0.3 does not unfold ~ to ${HOME} in the --only-from path.
>
> I.e. this works
>
> luarocks install name --only-from=${HOME}/path/to/repo
>
> and this does not
>
> luarocks install name --only-from=~/path/to/repo
So is life. :-\ In Unix shells (in bash and zsh, at least), ~ is
expanded by the shell, but only in the beginning of tokens. You'll
find the same behavior in other commands (compare "echo foo=~" and
"echo foo ~"). I don't want to expand ~ "by hand" inside LR because
that's not portable and not standard. I'd rather have LR support long
options with two tokens instead ("--only-from ~/path/to/repo"), but
that would be extra work to implement (it wouldn't fit easily with the
current decentralized scheme for option handling in LR).
-- Hisham
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers