Branch: refs/heads/gh-124-hash-bang-prototype
  Home:   https://github.com/tarantool/tarantool
  Commit: 82519c3f242c50b18ae7da74947f661cff14b0c8
      
https://github.com/tarantool/tarantool/commit/82519c3f242c50b18ae7da74947f661cff14b0c8
  Author: Roman Tsisyk <[email protected]>
  Date:   2013-12-01 (Sun, 01 Dec 2013)

  Changed paths:
    M include/say.h
    M include/tarantool.h
    M src/lua/init.cc
    M src/say.c
    M src/tarantool.cc

  Log Message:
  -----------
  Allow to use Tarantool as a Lua interpreter

This patch add support for hash-bang (#!/usr/bin/tarantool_bxO0 feature
as described in #124.

Example:

    #!/usr/local/bin/tarantool_box --
    print("HELLO from", arg[0]);
    for k,v in ipairs(arg) do
  print(k, v)
    end

    ./test.lua dfasdf dsaf dsaf dsaf
    HELLO from      ./test.lua
    1       dfasdf
    2       dsaf
    3       dsaf
    4       dsaf

Logger was reworked to use temporary files (mkstemp).
On an error entire log file is printed to stderr.
Daemon mode is not affected at all.


_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to