undefined variable error

Hi all,

Im using a script which contains read command.. the script works perfectly but when I alias the script it gave "undifined variable" after I enter the read command input (variable)...

Does any one know why ?

What do you mean by 'alias the script'?

Can you show us the script?

you mean "alias name=read " and can't use name in script?

no ... I mean that I alias the whole script that ontains the read command...

the file name is RUN. and it contains a lot of commands including the read command... which reads a variable called var to be used later in the script..

I used... alias /home/locked/RUN code . so that I can type "code" to run it.

Your alias is backwards
try

alias code="/home/locked/RUN"