bug-bash
[Top][All Lists]
Advanced

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

Re: alias problem -- conflict found


From: Chet Ramey
Subject: Re: alias problem -- conflict found
Date: Wed, 10 Jul 2019 14:04:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

On 7/10/19 12:01 PM, L A Walsh wrote:

> What do you think aliases are?  They are both a simple hash substitution.

They might appear superficially similar, and they use similar internal
abstractions.

> declare -A BASH_CMDS=([ls]="/usr/bin/ls" )
> declare -A BASH_ALIASES=([ls]="/bin/ls" )

And I made them both available using array syntax, using a different
internal mechanism, but:

> Aliases are store/implemented using hashes the same as stored paths
> are.  They are effectively the same.

Which is not at all what you said initially.

This isn't ksh, using `tracked aliases' to expose hashed pathnames.

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



reply via email to

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