----- Original Message -----
From: "Dan Uscatu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 31, 2004 10:29 AM
Subject: [rlug] dilema existentiala bash
> (login)
>
> $cp /bin/ls /usr/local/bin/blabla
> $blabla (se executa frumos)
> $rm /usr/local/bin/blabla
> rm: remove '/usr/local/bin/blabla' ? y
> $blabla
> bash: /usr/local/bin/blabla: No such file or directory
>
> pe un login nou, apare evident mesajul normal:
>
> bash: blabla: command not found.
>
> se pricepe cineva sa explice de ce ?
yeap ...
de la man bash cetire:
<begin>
Bash uses a hash table to
remember the full pathnames of executable files (see hash under SHELL
BUILTIN COMMANDS below). A full search of the directories in PATH is
performed only if the command is not found in the hash table. If the
search is unsuccessful, the shell prints an error message and returns
an exit status of 127.
</end>
si acum revenind la cele scrise de tine ...dupa ce dai rm baga si un
hash -r dupa care o sa ai mesajul
corect (sau ala la care te astepti tu): command not found
explicatia e tot prin ceaslovul de la bash unde scrie pe undeva ce face
hash -r
The -r option causes
the shell to forget all remembered locations.
have a nice day!
Cristian
---
Detalii despre listele noastre de mail: http://www.lug.ro/