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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to