× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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


As an Amazon Associate we earn from qualifying purchases.

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-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.