"Have you any idea how they do it (looking from programmer's side) ?"
The name of the current directory is kept in a variable called CWD. Try:
echo $CWD
You can use CWD in your script programs to refer to the current working directory. You can use PWD to print your current working directory.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites