<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Thu, 2010-11-11 at 14:40 -0600, Pat Kane wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">The following build.sh lines do not work with Solaris 10 /bin/sh</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a"> local rtn</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> local needs_config=0</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> local line</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> local module</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> local component</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#1a1a1a">looks like build.sh is turning into a bash script, which is okay,</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a">but if so, please fix the first line of the file.</FONT></TT><BR>
</BLOCKQUOTE>
<BR>
According to "man sh" on my Debian distro:
<PRE>
Variables may be declared to be local to a function by using a local com‐
mand. This should appear as the first statement of a function, and the
syntax is
local [variable | -] ...
Local is implemented as a builtin command.
When a variable is made local, it inherits the initial value and exported
and readonly flags from the variable with the same name in the surround‐
ing scope, if there is one. Otherwise, the variable is initially unset.
The shell uses dynamic scoping, so that if you make the variable x local
to function f, which then calls function g, references to the variable x
made inside g will refer to the variable x declared inside f, not to the
global variable named x.
</PRE>
<BR>
Could it be a difference in Solaris? Anyway, this can be removed. A patch would be appreciated.<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>