Say I have this script mm in dir1:
#Contents of mm
echo "Hello Main!"
./hd
My pwd is dir2, and I now execute mm:
$ ../dir1/mm
There is an executable named hd in both dir1 and dir2. I tried it and the hd in dir2 is executed. Why isn't hd in dir1 executed instead?
dir2in your$PATH?