[Novalug] weird type

shawn wilson ag4ve.us@gmail.com
Wed Aug 22 00:27:15 EDT 2012


wow, and zsh seems to manage this differently... or have more things
in hash ... stuff i never knew:
http://bradconte.com/bash-path-hashing.html
sorta cool.

On Wed, Aug 22, 2012 at 12:06 AM, Mark Smith <mark@winksmith.com> wrote:
> it makes looking up commands faster (assuming bash).
>
> you'll only run into issues with hashing if you remove a command that
> you've run already.  no biggie though, it's not you'll run a command
> that doesn't exist.  or perhaps if you have two commands with the same
> exact name in different locations and you change your PATH variable?
> i've never run into issues.
>
> see your hash table:
>
>         hash
>
> empty your hash table:
>
>         hash -r
>
> look up /^  *hash/ after running "man bash" to find out more.
>
> it's been a while for a long time silently working behind the scenes
> to make your linux experience fantastic.  i can remember command hashing
> in csh back in the way dim past too before bash even existed.
>
> On Tue, Aug 21, 2012 at 10:22:57PM -0400, shawn wilson wrote:
>> anyone know what this means?
>> # type cat
>> cat is hashed (/bin/cat)
>>
>> i've never seen 'hashed'
>>
>> it's a standard debian install on virtualbox on a mac:
>> swilson-mbp-vdebian:/# file /sbin/init
>> /sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
>> dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
>> swilson-mbp-vdebian:/# cat /proc/version
>> Linux version 2.6.32-5-amd64 (Debian 2.6.32-41) (ben@decadent.org.uk)
>> (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Jan 16 16:22:28 UTC
>> 2012
>> swilson-mbp-vdebian:/# uname -a
>> Linux swilson-mbp-vdebian 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28
>> UTC 2012 x86_64 GNU/Linux
>> _______________________________________________
>> Novalug mailing list
>> Novalug@calypso.tux.org
>> http://calypso.tux.org/mailman/listinfo/novalug
>
> --
> Mark Smith
> mark@winksmith.com
> mark@tux.org



More information about the Novalug mailing list