Perhaps you wanted to export WORKSPACE?
You should be able to run 'set' and see the value of $WORKSPACE as it is - it is set, but not an environment variable because you did not export it. AFAIK, your alias will only be available in the top-level shell. You would place the alias in
.bashrc or thereabouts to make it available in sub-shells too. (See §6.2 'Bash Startup Files' of the Bash manual for more information. Also, check that there isn't a
.bash_profile file in your home directory; one of those would be used in preference to - not as well as - the
One other possibility - you are not configured to use Bash or Korn shell. I rate that unlikely, but not completely out of the question. The C shell family uses
.cshrc files instead.