This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

contrib/gcc_update in CVS broken in IRIX 6.5


From sh(1):
  ...
COMPATIBILITY ISSUES
     To retain some backward compatibility to the Bourne shell, certain Korn
     shell features are controlled by how the shell is invoked and/or the
     current value of the environment variable _XPG.

     When the shell is invoked as "sh", the following features are performed
     only when the current value of the _XPG variable is equal to 1 (one):

          - command substitution of the form "$( command )"
          - arithmetic expression of the form "$(( expression ))"
          - tilde expansion of pathnames
          - parameter $0 within a function call is the name of the
            invoking shell script
          - unsetting variables, not previously set or null, returns 0

So touch_files_reexec tries to exec the function touch_files_reexec.
I've opened a support call with SGI to find out why they did the
above. They do have /bin/bsh which is the Bourne Shell and it behaves
as one would expect.

-- 
albert chin (china@thewrittenword.com)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]