The original sh file was probably written on Linux, where /bin/sh (at 
least on Red Hat 7.x) is a symbolic link to bash, which can do the 
Korn-like export as part of the same statement as the value setting. 
You're right; exporting the variable AFTER it's been set will work for both.

David

--

Toby Allsopp wrote:

> On Tue, Sep 25, 2001 at 12:09:29PM +0800, John LYC wrote:
> 
>>hi all,
>>when i exec the run_with_tomcat.sh.
>>i get this error msg.
>>-------------------------------------
>>JBOSS_CLASSPATH=/usr/j2sdk1_3_1/lib/tools.jar: is not an identifier.
>>-------------------------------------
>>
>>i think it comes from the 2nd line of the run_with_tomcat.sh
>>-------------------------
>>export JBOSS_CLASSPATH=$JBOSS_CLASSPATH:$JAVA_HOME/lib/tools.jar
>>-------------------------
>>
> 
> That's not valid sh syntax.  Try changing it to read
> 
> JBOSS_CLASSPATH=$JBOSS_CLASSPATH:$JAVA_HOME/lib/tools.jar; export JBOSS_CLASSPATH
> 
> If that works, please post it as a patch on SourceForge.
> 
> Toby.
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-- 

-----------------------------------------------------------------------
David Ward                                        [EMAIL PROTECTED]
Senior Software Engineer                          http://www.dotech.com
Distributed Object Technologies, Inc.             716-381-8320 (phone)
500 Linden Oaks, Rochester, NY 14625              716-381-0598 (fax)


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to