Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7514

run.sh on Solaris uses the wrong grep command

    XMLWordPrintable

    Details

    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      I propose to add SunOS detection and set GREP accordingly:

      Line 62, and add the "sunos" variable + check; and the if/then which resets GREP

      1. OS specific support (must be 'true' or 'false').
        cygwin=false;
        darwin=false;
        linux=false;
        sunos=false;
        case "`uname`" in
        CYGWIN*)
        cygwin=true
        ;;

      Darwin*)
      darwin=true
      ;;

      Linux)
      linux=true
      ;;

      SunOS)
      sunos=true
      ;;
      esac

      if $sunos ; then
      GREP=/usr/xpg4/bin/grep
      fi

      Show
      I propose to add SunOS detection and set GREP accordingly: Line 62, and add the "sunos" variable + check; and the if/then which resets GREP OS specific support (must be 'true' or 'false'). cygwin=false; darwin=false; linux=false; sunos=false; case "`uname`" in CYGWIN*) cygwin=true ;; Darwin*) darwin=true ;; Linux) linux=true ;; SunOS) sunos=true ;; esac if $sunos ; then GREP=/usr/xpg4/bin/grep fi
    • Estimated Difficulty:
      Low
    • Release Notes Text:
      Hide
      In JBoss Enterprise Application Platform version 5.1.1, the <filename>run.sh</filename> startup script was enhanced to include a test for a 64-bit JVM. However, this test was not working on Solaris because the standard <command>grep</command> command does not support the <parameter>-e</parameter>, which specifies the regular expression to be used in the search. This issue was resolved by explicitly using <filename>/usr/xpg4/bin/grep</filename> since this does support the regular expression parameter <parameter>-e</parameter>.
      Show
      In JBoss Enterprise Application Platform version 5.1.1, the <filename>run.sh</filename> startup script was enhanced to include a test for a 64-bit JVM. However, this test was not working on Solaris because the standard <command>grep</command> command does not support the <parameter>-e</parameter>, which specifies the regular expression to be used in the search. This issue was resolved by explicitly using <filename>/usr/xpg4/bin/grep</filename> since this does support the regular expression parameter <parameter>-e</parameter>.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      The "fix" for https://issues.jboss.org/browse/JBPAPP-5347
      is in fact creating a new issue:

      On Solaris, the standard "grep" command does not support the "-e" flag
      Instead, you need to use:
      /usr/xpg4/bin/grep

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tfonteyn Tom Fonteyne
                Reporter:
                tfonteyn Tom Fonteyne
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: