From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 6F74A43D67A for ; Fri, 18 Oct 2019 00:20:58 +0300 (MSK) References: <6de1f18613e9b6a3f716c60b9c85457d2bd9eb64.1571341771.git.v.shpilevoy@tarantool.org> <20191017200042.GC9698@uranus.lan> <20191017210505.GD9698@uranus.lan> <20191017210820.GE9698@uranus.lan> <20191017211542.GF9698@uranus.lan> <697036ad-e9de-6202-af67-cd1e94469dca@tarantool.org> <20191017211946.GG9698@uranus.lan> From: Vladislav Shpilevoy Message-ID: Date: Thu, 17 Oct 2019 23:26:04 +0200 MIME-Version: 1.0 In-Reply-To: <20191017211946.GG9698@uranus.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [tarantool-patches] Re: [PATCH 1/1] console: fix usage of an undeclared variable List-Id: Tarantool development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cyrill Gorcunov Cc: tarantool-patches@freelists.org, tarantool-patches@dev.tarantool.org On 17/10/2019 23:19, Cyrill Gorcunov wrote: > On Thu, Oct 17, 2019 at 11:22:56PM +0200, Vladislav Shpilevoy wrote: >>> Yes, and it means we will get nil here, and the caller code >>> threat it as no-error and return empty string upward. >> >> No, it was not nil. It was: >> >> localhost:3313> >> --- >> - error: 'builtin/box/console.lua:454: variable ''rc'' is not declared' >> ... > > Aha! I happen to miss that. Thanks for the point! > It would be nil in case a user turned strict mode off.