The single quotes are added by the WRKENVVAR command. I originally have none but they are stored as single quoted strings.

For example when I use the WRKENVVAR command I see this:

Work with Environment Vars (*JOB) Type options, press Enter. 1=Add 2=Change 4=Remove 5=Display details 6=Print Opt Name Value _WX_GEN_NAMES ''
ICU_DATA '/QIBM/ProdData/OS400/icu/data'
JAVA_HOME '/QIBM/ProdData/Java400/jdk15/'
CLASSPATH '$MY_HOME/lib/myjar.jar'
MY_HOME '/MyHomeFolder'
All of the values have single quotes

Pete

Adam Glauser wrote:
Pete Helgren wrote:
If I define a MY_HOME variable as '/MyHomeFolder' and then use it in a CLASSPATH variable like so:

$MY_HOME/lib/myjar.jar

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'

Maybe the quoting is causing the problem? I think that single quotes escape the $ in QSH.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].