These is the output of the df -k :
[Sathyas-Panther-Jr:~/SFAScripts/TESTING] sathya% df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/disk0s5 58599900 30403184 27940716 52% /
<volfs> 512 512 0 100% /.vol
automount/Servers
automount -static [327] 0 0 0 100% /automount/static
/dev/disk1s2 662960 554544 108416 84% /Volumes/TestDisk
My problem is that I have a script I am executing residing on the mounted volume (/Volumes/TestDisk) on my machine (/dev/disk0s5). Now, when I try to get the current directory in the script :
CURRENT_DIR=`pwd`
echo $CURRENT_DIR
Instead of the expected /Volumes/TestDisk, it returns $HOME.
Any ideas ?
Thanks.