From mboxrd@z Thu Jan 1 00:00:00 1970 List-Id: Return-Path: Received: from localhost (localhost [127.0.0.1]) by mail.ignore.pl (Postfix) with ESMTP id B6F4F477BE; Fri, 15 May 2026 21:12:05 +0000 (UTC) X-Virus-Scanned: Debian amavis at ignore.pl Received: from mail.ignore.pl ([127.0.0.1]) by localhost (geidontei.ignore.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id Dx5Q_sfz2npn; Fri, 15 May 2026 21:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ignore.pl; s=gdt; t=1778879523; bh=f5D/sAf+tcWsEnC+OPuJwH6ton55YomoRLOqcghYyiA=; h=Date:Subject:To:References:From:In-Reply-To:From; b=UHaMS/5brRDxyN+X5lBaL0PPlaxRr4UQamkUQVGAIbpDR/gWCHin7Coq05lt7o+bK 07p79lc4LfMV9Q8SsG0Hdp/BOc8l0/ZfSF8d5Mis9v63RMwMnWwHmwNdYrU6/vf5GS F7Yf5tLEfkVoo6SUccVaPRdWTxUXyaYG5oF755ENroy/rOqCk91tA9EJE2I9WYhLSJ U8qs9ycRFUw23a2yg6+ri5huKpSWMzpLYjy5IVlLEWtlIgQ/KDZo9yKWUp8CIxRILz WTW/fEkWex2Ii5QXqhsNADfTijH0z/dySrBAmmxyukatr+xsqz777Dojk41d1toGc0 nBiZZIjF1ARFg== Received: from [192.168.1.5] (daz147.neoplus.adsl.tpnet.pl [83.23.25.147]) by mail.ignore.pl (Postfix) with ESMTPSA id BD5F940541; Fri, 15 May 2026 21:12:03 +0000 (UTC) Message-ID: <88fd1d60-4633-425b-8293-8697bd197002@ignore.pl> Date: Fri, 15 May 2026 23:12:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] what: use pl.lapp for what command To: Jakub Slepecki , patches@ignore.pl References: <20260515124539.477794-1-jakub.slepecki@intel.com> Content-Language: pl-PL, en-GB From: Aki In-Reply-To: <20260515124539.477794-1-jakub.slepecki@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15/05/2026 14:45, Jakub Slepecki wrote: > Penlight's pl.lapp has a very nice interface for users that want to > do `which what` being somewhat self-documenting. It has some minor > problems, it misses some *nix or GNU traditions (e.g., lack of - with > file type that's addressed here) and some quirks like useless newlines. > These sound solvable upstream, but for now we need to wrap them. > > No functional changes are done to the command interface. All calls that > were correct are intended to continue being correct. > > Remove io.stdin check before closing the input stream. Lua has an > internal check that fails the io.close() returning error message. > We can just ignore it. > > Signed-off-by: Jakub Slepecki Merged as 96b9b70d6415. Corrected a small type "User (...) themselves" -> "Users (...) themselves.