bug-bash
[Top][All Lists]
Advanced

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

Re: hash not restored after running command -p


From: Chet Ramey
Subject: Re: hash not restored after running command -p
Date: Sat, 30 Oct 2021 13:53:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.1

On 10/29/21 6:06 PM, Roger Morris wrote:

Bash Version: 5.0
Patch Level: 17
Release Status: release

Description:
I believe there's a bug in bash 4.4 (and still in 5.1) that wasn't
there in 4.3.30

When 'command -p' runs, it no longer seems to restore the hash to its
previous value.

This came in in mid-2015 as part of a set of fixes to `command -p'. I think
the bash-4.4 and later behavior is correct: just because you're telling
command to use a standard path it doesn't mean it should not act like it
would in any other circumstance. There's nothing in POSIX that contradicts
that.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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