On Tue, 2010-12-14 at 18:40 -0800, Dan Nicholson wrote:

> 
> Oh, never mind. I thought you guys had decided on POSIX shell as a
> baseline.
> 


This has been the subject of confusion on a number of occasions. We know
we have users on Solaris 10
with a Bourne shell that isn't POSIX compliant, as explained by Alan.
Most of the changes done are from people
with POSIX shell, mostly bash. 

I'd like to find a meaningful comment to add in the script to clear the
confusion, but I am rather ignorant on the subject, barely cognisant of
the shell I am using (turns out to be "dash").


#!/bin/sh
#
# Note on portability: 
# This script is intended to run on any platform supported by X.Org. 
# The Autoconf generated configure script is a good reference as to what is 
permitted.
# Basically, it should be able to run in a Bourne shell.


I figured that if packages configure script can run on a given platform,
so should build.sh.

Should we had this boiler plate code from configure:

        # Be more Bourne compatible
        if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
          emulate sh
          NULLCMD=:
          # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
          # is contrary to our usage.  Disable this feature.
          alias -g '${1+"$@"}'='"$@"'
          setopt NO_GLOB_SUBST
        else
          case `(set -o) 2>/dev/null` in
          *posix*) set -o posix ;;
        esac
        
        fi


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to