[tex-live] configure failure on Sun Solaris

Nelson H. F. Beebe beebe at math.utah.edu
Thu Jan 15 00:54:02 CET 2004


>> ../../../../TeX/texk/dtl/configure: syntax error at line 131: `(' unexpected

This looks like a bash or ksh feature in the configuration file; the
Red Hat /bin/sh is actually bash: when  invoked under the name sh, it
conforms to POSIX sh, but POSIX contains extensions over traditional sh.

Here is an example:

	% cat ~/foo.sh
	#!/bin/sh
	echo $(echo This is a nested echo)

On Solaris and HP/Compaq/DEC OSF/1 4.x and 5.x:

	% ~/foo.sh
	/u/sy/beebe/foo.sh: syntax error at line 2: `(' unexpected

On Solaris with a POSIX sh:

	% /usr/xpg4/bin/sh < ~/foo.sh
	This is a nested echo

The same output is obtained on Solaris with /usr/bin/ksh (all Solaris
versions) and /usr/bin/bash (Solaris 2.8 or later).

On GNU/Linux, FreeBSD, NetBSD, OpenBSD, and IBM AIX:

	~/foo.sh
	This is a nested echo

SGI IRIX 6.5 produces completely different output:

	~/foo.sh
	$(echo This is a nested echo)

The syntax to use that works everywhere is the backquoted form:

	echo `echo This is a tested echo`

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------


More information about the tex-live mailing list