Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7160

"grep: warning: stray \ before :" at console after server startup with GC_LOG=true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 28.0.0.Beta4
    • 28.0.0.Beta3
    • Scripts
    • None

      Simply running bin/standalone.sh on systems with newer grep version (AFAICT it is >=3.8) will issue a warning:

      $ GC_LOG=true bin/standalone.sh 
      grep: warning: stray \ before :
      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /tmp/wildfly-35.0.0.Final
      ...
      

      This is caused by use of unnecessary backslash in grep command in standalone.sh script, newer grep seems to be more strict about it.

      https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html

              jbliznak@redhat.com Jan Blizňák
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: