mozkaynak
March 17th, 2007, 05:05 AM
I try to write very very basic script using only one if statement. However, it does not work. I tried to run in on the terminal manually and I got the same error message (command not found). Which command is it talking about?
can anyone tell me what is wrong?
the terminal output is:
mozkaynak@ozkaynak:~$ read choice
1
mozkaynak@ozkaynak:~$ if ["$choice"="1"] ;then
> ls
> else
> echo else
> fi
bash: [1=1]: command not found
else
mozkaynak@ozkaynak:~$
Thanks alot in advance.....
can anyone tell me what is wrong?
the terminal output is:
mozkaynak@ozkaynak:~$ read choice
1
mozkaynak@ozkaynak:~$ if ["$choice"="1"] ;then
> ls
> else
> echo else
> fi
bash: [1=1]: command not found
else
mozkaynak@ozkaynak:~$
Thanks alot in advance.....