Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6893426

ShellScaffold.sh fails on Solaris 10 update releases: /usr/bin/id: illegal option -- u

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • core-svc
    • b74
    • 7
    • b77
    • generic
    • solaris_10

        The fix for 6787605 took care of getting ShellScaffold.sh working on
        OpenSolaris releases. I neglected to test to see if the fix would
        work on Solaris 10 update releases. It fails there because /usr/bin/id
        does not support the "-u" flag:

        This is on a s10x system recently upgraded to the latest S10 update release:

        % cat /etc/release
                               Solaris 10 10/09 s10x_u8wos_08a X86
                   Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
                                Use is subject to license terms.
                                   Assembled 16 September 2009


        % UU=`/usr/bin/id -un`
        /usr/bin/id: illegal option -- u
        Usage: id [-ap] [user]


        From 'man id' over on an OpenSolaris 2009.06 install:

             -u Outputs only the effective user ID, using the format
                   "%u\n".

              tbell Tim Bell
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: