hi,
i've created a simple script called "do" in linux and put it in /home/RnD/bin. i also set PATH to point to that directory e.i. PATH points to /home/RnD/bin. when i execute it like this,
[root@localhost me]# do
gives me the following error msg:
bash:syntax error near unexpected token 'do'
but if i run it by typing like this:
[root@localhost me] #/home/RnD/bin/do
it works. what's wrong with the previous one?
by the way, PATH is set in bash_profile file.
himal
i've created a simple script called "do" in linux and put it in /home/RnD/bin. i also set PATH to point to that directory e.i. PATH points to /home/RnD/bin. when i execute it like this,
[root@localhost me]# do
gives me the following error msg:
bash:syntax error near unexpected token 'do'
but if i run it by typing like this:
[root@localhost me] #/home/RnD/bin/do
it works. what's wrong with the previous one?
by the way, PATH is set in bash_profile file.
himal