bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interactive Script works different than File Script


From: Wilkinson, Robert
Subject: Interactive Script works different than File Script
Date: Tue, 6 Nov 2001 14:34:10 -0600

I have been tearing my hair out for days tring to solve this problem and I have tried all my available avenues. I hope you can and will help.
 
When I use the following in a script
 
#! /bin/sh
OPENJMS_HOME="/usr/java/openjms-0.7"
echo $OPENJMS_HOME/lib
 
 
 
I get the following output  "/lib/java/openjms-0.7"
 
In other words the first 4 characters of the variable are replaced by the string following the variable in the echo command
 
I would have expected "="/usr/java/openjms-0.7/lib" which is what I get when I execute this interactively.
 
 
The Version number is 1.14.7(1)[0]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]