Originally Posted by crts
please start using CODE tags! Catkin gave you failproof instructions on how to accomplish that. See also my signature.
As for your problem, answer the following questions first:
- Are those really the exact errors that get printed? They should look more like
./5: line 5: let: command not found
- Are you 100% sure that the scripts are called from within a bash-shell?
- Is your very first line indeed the shebang ( and not, e.g. emtpy)?
- Are you using some sort of 'funny' editor that does precede your lines with line-numbers?
- What does your PATH environment variable look like?
well, 1:those are really the exact errors that get printed(100% sure)
2:the scripts are called from within a bash-shell (99.99% sure)
3:my very first line is indeed the "#!/bin/bash" (99.98% sure)
4:i was using the gedit Text Editor to create the scripts (with no line-number) (99.97% sure)
5:wang@wang-laptop:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games (100% sure)
Again, sorry for troubling you! thanks! (200% sure)