Space required at the end of the interpreter in a shell step

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The following shell step only works if a space is added after 'bash'.

      sh label: 'with bash', script: '''#!/bin/bash 
       if [[ 0 = 0 ]]; then echo ok; else echo bad; fi
       '''

      Without the space the shebang line appears to be ignored.

      Having to end a line with a space is very counter-intuitive.

            Assignee:
            Unassigned
            Reporter:
            Bram Mertens
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: