Re: hash -l with empty hash table prints to stdout
From:
Eli Schwartz
Subject:
Re: hash -l with empty hash table prints to stdout
Date:
Tue, 16 Jun 2020 10:26:55 -0400
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
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?
Why is stderr not a good place for this? hash -l documents that its
output may be reused as input, which assumption breaks down if the hash
table is empty.
If "send the non-eval'able diagnostic output to stderr, separate from
the eval'able output stream" isn't a convincing argument to you, then
perhaps it could be prefixed with a "#" such that eval'ing it would skip
that line?
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc Description: OpenPGP digital signature