bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behaviour of 'hash' builtin


From: Chet Ramey
Subject: Re: Weird behaviour of 'hash' builtin
Date: Mon, 31 May 2010 22:55:36 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 5/30/10 4:22 AM, Jan Schampera wrote:

> If this is not a bug, what's the reason behind this? Is it to blindly
> report success when an operand "looks like a pathname"?

`hash' ignores operands with slashes.  It just doesn't consider them at
all.  They don't get into the hash table and they don't contribute to the
success or failure of the command.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]