I wrote a very simple script that looks like that:
$ cat pack.sh
#!/bin/bash
cd log
rm development.log
cd ..
tar zcvf my_tar_ball.tar.gz *
But, it doesn't work:
$ pack.sh
pack.sh: command not found
which bash returns /bin/bash, and pack.sh is executable:
$ ls -ll pack.sh
-rwxrwxr-x 1 misha misha 75 2012-02-04 22:11 pack.sh
What could be the problem?
(BTW, source pack.sh does work!)
