Closed mralusw closed 3 years ago
Hi, @mralusw ! Thanks for the contribution!
Would you mind to explain me what's the difference between calling the interpreter directly and via exec
? I'm not that familiar with that...
exec
replaces the current process (sh
) immediately with lua
.
Calling lua
as a final command forks, executes lua
in the fork, and leaves the main sh
process waiting for lua
to exit... after which it exits itself, of course, since there are no further commands.
@mralusw Thanks for the tip!
Nice! I didn't know that!
Just a few small quoting fixes (for paths containing spaces,
*
etc); also, exec lua at the end since there's no point in having ash
process waiting for nothing.