X-Original-To: alpine-devel@lists.alpinelinux.org Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lists.alpinelinux.org (Postfix) with ESMTP id C4838F84F0D for ; Tue, 25 Jun 2019 14:00:47 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2D744421; Tue, 25 Jun 2019 10:00:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 25 Jun 2019 10:00:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h= message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=fm3; bh= nPKRjGvcwneW4vLPptXWoAKeDeizKN2CDt38C196O3o=; b=sCEtchgzjOKTNio6 65K/r4DPT/O29JgpKsCCqdE2TMdPnFUz+5oCVu9aaPzZ05odahl7hpAtX1tXGEx4 6kiNkFxFfkYfbXvthGP7TIAe9ADzuq7yWA08Zq4rYHTwcTYVJPZlZMWjK5COmQCI qzbfpWEUZJQUXokF6CF1Z8tQtgWqDG8BVb8rYtb1xVhQQQ5n5ylcePvV6sh8fY2y Jo5++fc2H26pp3nfTsPyPoDxopJpZ9oURtLtO0F2m7YMurN3bbvvy3v+tzRugkRC RPyIQt6ClKkfSWsF1nSp6ij6upRkYWPxBdBcrVd5uyCvUmcPdveCrBdwkzSCN0++ /DJUiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=nPKRjGvcwneW4vLPptXWoAKeDeizKN2CDt38C196O 3o=; b=O7ku8mEeaEVxKcmSoq1Sk0Z9K1w7ONXCWJsfbeWgToza5yPYdUhJ6LHkt JHR1fsYbXUftvQHhO+tsrWLLy0INox8zcgRBjg3eHQJrQjYt69N61Ojiq1v0DrxA UOM+jVj5EBtkULhhXED9qfFqNcJv2/VaxCffXdwHazPQojj4CzQ/r39g7VX5ZthP ofvhLc9YSHxRLcD7LbzVLlB9mnkGJvaxfqMVD560f4eCFt5DYptopg8H4zROEY6Q qwRBkutx4jGTutlClj2rSrwxY7rgsieIoc909vT/qYo6iHnpPQlXNeYCgO++VPeD k52C+idPZpLhUrs8frX6+HtjaX1KQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeggdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkffuhffvffgjfhgtfggggfesthejre dttderjeenucfhrhhomheprfgruhhluceurhgvuggsuhhrhicuoegsrhgvsghssehsvghn thdrtghomheqnecukfhppeejledrjeefrddufeeirddvtddtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegsrhgvsghssehsvghnthdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from brebsc.lan (79-73-136-200.dynamic.dsl.as9105.com [79.73.136.200]) by mail.messagingengine.com (Postfix) with ESMTPA id 141428005C for ; Tue, 25 Jun 2019 10:00:46 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=brebsc.lan) by brebsc.lan with esmtp (Exim 4.92) (envelope-from ) id 1hfm04-0002ne-C8 for alpine-devel@lists.alpinelinux.org; Tue, 25 Jun 2019 15:00:44 +0100 Message-ID: Subject: Re: [alpine-devel] APK Tools: exit code for list applet? From: Paul Bredbury To: alpine-dev Date: Tue, 25 Jun 2019 15:00:44 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On Mon, 2019-06-24 at 23:06 -0500, A. Wilcox wrote: > I noticed that when `apk list` does not return any results, it still > exits with return code 0. I feel it would be useful for scripts and > automation for it to return code 1 if there are no results. An empty list is not an error. Being unable to produce the list, would be an actual error. Scripts can just check whether the list is empty. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---