Recursive subject line....

Here is the issue. I would like to define an environment variable that will be used to substitute another value in another variable.

For example:

If I define a MY_HOME variable as '/MyHomeFolder' and then use it in a CLASSPATH variable like so:

$MY_HOME/lib/myjar.jar

Should that work? I can't seem to get the variable to substitute in other variables (like in Windows)

If I set the variables as above and then run the echo $CLASSPATH command within QSH then I see this:

echo $CLASSPATH
'$MY_HOME/lib/myjar.jar'

I expected to see:

'/MyHomeFolder/lib/myjar.jar'

Do I have the syntax wrong or doesn't this work in QSH?

Thanks,

Pete


This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].