From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1D46427AE5 for ; Fri, 27 Jul 2018 09:08:19 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MMH7KvNFJTGY for ; Fri, 27 Jul 2018 09:08:19 -0400 (EDT) Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id C9F612157F for ; Fri, 27 Jul 2018 09:08:18 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v1 1/1] Tarantoolctl "enter" with set language References: <5bbe9065-a279-1c15-9ae2-aa58850513b8@tarantool.org> From: Vladislav Shpilevoy Message-ID: <668e6568-0e45-dab3-ec24-8b80033c4738@tarantool.org> Date: Fri, 27 Jul 2018 16:08:16 +0300 MIME-Version: 1.0 In-Reply-To: <5bbe9065-a279-1c15-9ae2-aa58850513b8@tarantool.org> Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Imeev Mergen , tarantool-patches@freelists.org Hi! Thanks for the fixes! > diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in > index 2dd5d74..ef9da2f 100755 > --- a/extra/dist/tarantoolctl.in > +++ b/extra/dist/tarantoolctl.in >          log.error("Can't connect to %s (%s)", console_sock_path, errno.strerror()) > @@ -644,7 +659,9 @@ local function enter() >          console_sock, TIMEOUT_INFINITY >      ) > > -    console.on_start(function(self) self:eval(cmd) end) > +    local cmd_connect = string.format("\\set language %s", language) 1. It is not cmd_connect, it is cmd_language. Connect cmd is above. > + > +    console.on_start(function(self) self:eval(cmd) self:eval(cmd_connect) end) >      console.on_client_disconnect(function(self) self.running = false end) >      console.start() >      return 0 2. Please, write a documentation bot request for the new option.