> On Jun 16, 2020, at 10:51 AM, Chet Ramey <chet.ra...@case.edu>
> 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

Reply via email to