login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #126 /bin/sh vs /bin/bash scripting inconsistancy revision 1 of 4

1 2 3 4
Editor:
Time: 2007/11/17 21:55:08 GMT-8
Note: property change

changed:
-
In {\tt src/algebra/makefile.pamphlet}, is a 

<pre>
@ if [ "\${NOISE}" == "" ] ; then
</pre>

construction. <code>\${NOISE}</code> contains <code>-o foo</code>, and <code>/bin/sh</code> (not <code>bash</code>) doesn't like it.

Both <code>/bin/sh (BSD)</code> and <code>/bin/bash</code> like

<pre> @ if [ -z "\${NOISE}" ]; then 
</pre>

which is the functional equivalent.


From markm Fri Mar 18 15:30:50 -0600 2005
From: markm
Date: Fri, 18 Mar 2005 15:30:50 -0600
Subject: The result is a boatload of warnings in src/algebra
Message-ID: <20050318153050-0600@page.axiom-developer.org>

<pre>
compiling STRING.spad to STRING.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying STRING.NRLIB to STRING.o
compiling SYMFUNC.spad to SYMFUNC.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying SYMFUNC.NRLIB to SYMFUNC.o
compiling VECTOR2.spad to VECTOR2.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying VECTOR2.NRLIB to VECTOR2.o
compiling ASP1.spad to ASP1.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying ASP1.NRLIB to ASP1.o
compiling ASP10.spad to ASP10.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying ASP10.NRLIB to ASP10.o
compiling ASP24.spad to ASP24.NRLIB

... and so forth
</pre>

Submitted by : (unknown) at: 2007-11-17T21:55:08-08:00 (17 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

In src/algebra/makefile.pamphlet, is a

@ if [ "${NOISE}" == "" ] ; then

construction. ${NOISE} contains -o foo, and /bin/sh (not bash) doesn't like it.

Both /bin/sh (BSD) and /bin/bash like

 @ if [ -z "${NOISE}" ]; then 

which is the functional equivalent.

The result is a boatload of warnings in src/algebra --markm, Fri, 18 Mar 2005 15:30:50 -0600 reply
compiling STRING.spad to STRING.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying STRING.NRLIB to STRING.o
compiling SYMFUNC.spad to SYMFUNC.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying SYMFUNC.NRLIB to SYMFUNC.o
compiling VECTOR2.spad to VECTOR2.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying VECTOR2.NRLIB to VECTOR2.o
compiling ASP1.spad to ASP1.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying ASP1.NRLIB to ASP1.o
compiling ASP10.spad to ASP10.NRLIB
[: -o /home/ports/math/axiom/work/axiom-BSD-1/obj/tmp/trace: unexpected operator
copying ASP10.NRLIB to ASP10.o
compiling ASP24.spad to ASP24.NRLIB

... and so forth