Hi all,
I am trying to set an variable within the shell file, however it does not take the set. I can only set the variable in the prompt instead.
#!/usr/bin/sh
echo "set ONE=1"
output file: test.sh
$sh test.sh
Content in test.sh:
set ONE=1
--------
$echo $ONE
ONE: Underfined variable
Anyone knows why is not working? How to make it work within the script.
Thanks!
-scng