Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= Newsgroups: gnu.bash.bug Subject: Re: hash -l with empty hash table prints to stdout Date: Wed, 17 Jun 2020 00:27:55 -0400 Lines: 24 Approved: bug-bash@gnu.org Message-ID: References: <20200615204717.GB28118@jar> <447bbb87-ce9a-e038-5a00-68646f9771c4@archlinux.org> <067bf5a9-72ba-f6f6-a170-d1ebaa54919b@case.edu> <69a0b336-4f2e-3c9f-cacf-79358ed33bf4@archlinux.org> <083a2961-fd80-fbc8-4cf6-7ea30cf0c8e7@case.edu> <6BEEDF71-B645-4ED3-96DF-D97B9BDE3759@larryv.me> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1592368083 19130 209.51.188.17 (17 Jun 2020 04:28:03 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Eli Schwartz , bug-bash@gnu.org To: chet.ramey@case.edu Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= from:message-id:content-type:mime-version:subject:date :in-reply-to:cc:to:references; s=fm3; bh=gK4X6+fqd4VcGK2sXufkFDj EHBCNVBVXMRgx7jbXHCw=; b=qKG/vQaIMiwzrnmiHHweMC97qtTqpgqjEUEa3Lr aYR324zMm48s7wCM+7cQIclc0Uy5y/wDWWfHFuwOj5kVol7uamey28gOWGP1X99e JCjUhW3MnT/MywwDOnezhUKLeAdy8IHod3GhUyIN+Th7T16K+6Hir5U6GUQuR9hT IGEcr6mysrk8lY2oyoG6+f6ytHz4pzljwkDti2539CQV8ACBeb+eXC9Ai9B80jTh 6GAwxTFY0CdBaIQs6RulabcTbL02Husw72EB1EwwlfEbi9jgEzOKIuEoMsW8WbPg MTQJankrnXgqPJ8R8SEYMV2LYvGMUIQONsTszikQYq4isJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=gK4X6+ fqd4VcGK2sXufkFDjEHBCNVBVXMRgx7jbXHCw=; b=oiTL4PwSVWLwC+zJMonv48 +Z/QDaq3DTuTzOMPmB5j9Sn2kbVvtiAN1Yc9Az/x4/uc8KraQr5g2GH10R4BCai6 v9XRD4QAC3qk42UlCF7aEsNZG1pcSxdQl/aJUtG3tLgCSk7UURy4u0OLPSzrZY3Q 6wvQKd5pdkOLNHzMZXh1tYoJoVhjl61YuNyu2+Lq5Ce0aevwk4F4JaLp+sOkMsIy Tmcc2iCNTZnNcNvQ/pcjfqTb9f6qQpJb6rMEqmkSKG1yvyP7hbEqnObJpHeV/3Cw mjSzeQJxRVl+Aiy9kQcN/hhpYEOuIBasrd3a3goruJs+tN5X5tlPmox1gxNfSJAA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejuddgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffktgggufffjgfvfhfosegrtdhmrehhtddvnecuhfhrohhmpefnrgifrhgv nhgtvggpgggvlhojiihquhgviicuoehvqheslhgrrhhrhihvrdhmvgeqnecuggftrfgrth htvghrnhepfedvleehteehkeevhedtjedvleegvdfhkeettdejhfekudegfeekheffkeev gffgnecukfhppedutddtrdduvddrudekgedrvdegieenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehvqheslhgrrhhrhihvrdhmvg X-ME-Proxy: In-Reply-To: <083a2961-fd80-fbc8-4cf6-7ea30cf0c8e7@case.edu> X-Mailer: Apple Mail (2.3445.104.14) Received-SPF: pass client-ip=66.111.4.28; envelope-from=vq@larryv.me; helo=out4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/16 23:59:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <6BEEDF71-B645-4ED3-96DF-D97B9BDE3759@larryv.me> X-Mailman-Original-References: <20200615204717.GB28118@jar> <447bbb87-ce9a-e038-5a00-68646f9771c4@archlinux.org> <067bf5a9-72ba-f6f6-a170-d1ebaa54919b@case.edu> <69a0b336-4f2e-3c9f-cacf-79358ed33bf4@archlinux.org> <083a2961-fd80-fbc8-4cf6-7ea30cf0c8e7@case.edu> Xref: csiph.com gnu.bash.bug:16396 > On Jun 16, 2020, at 10:51 AM, Chet Ramey > wrote: > >> On 6/16/20 10:26 AM, Eli Schwartz wrote: >> >>> On 6/16/20 9:56 AM, Chet Ramey wrote: >>> >>> It's not a warning; there's nothing to warn about. An empty hash >>> table is not an exceptional condition. It's simply informational. >> >> Then would you say it is debug info? > > No, not at all. What are you trying to debug? > > Maybe it would be better to remove the message entirely and only > display it in compatibility mode. The user-friendly way to view the table is by running `hash` without arguments. It prints "hash table empty" as well, which makes sense in that context. Given that, it makes sense to me to change `hash -l`, which is expressly intended for scripting use, to output nothing when the table is empty. vq