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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.1
    • Scripts and Commands
    • None
    • Solaris only

    • Release Notes
    • Workaround Exists
    • 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
    • Low
    • 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>.
    • Documented as Resolved Issue
    • NEW

      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

            tfonteyn Tom Fonteyne (Inactive)
            tfonteyn Tom Fonteyne (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: