[ sisc-Bugs-1431789 ] Ancient /bin/sh doesn't deal well with sisc launch

"SourceForge.net" <[email protected]> Tue, 14 Feb 2006 13:36:28 -0800
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #1431789, was opened at 2006-02-14 21:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1431789&group_id=23735

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Danny Yoo (dyoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Ancient /bin/sh doesn't deal well with sisc launch

Initial Comment:
Under Solaris 10's version of /bin/sh, the sisc
launcher reports the following error message:

/export/home/dyoo/local/sisc-1.11.3/sisc: syntax error
at line 65: `(' unexpected


This has to do with the command substitution '$(uname)'
at that line, which is unsupported in Solaris 10's
/bin/sh.  This incompatibility is also described in:

http://en.wikibooks.org/wiki/Bourne_Shell_Scripting/Substitution

So a more compatible approach uses backticks, like this:


bash-3.00$ diff -u sisc ~/local/sisc-1.11.3/sisc
--- sisc	Tue Aug 23 08:14:51 2005
+++ /export/home/dyoo/local/sisc-1.11.3/sisc	Tue Feb 14
13:35:54 2006
@@ -62,7 +62,7 @@
 
         
     D=":"
-    case $(uname) in 
+    case `uname -s` in 
       CYGWIN* )
         D=";" ;;
     esac


I hope this helps!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1431789&group_id=23735


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642