I’m using Ubuntu, and have never heard of dash (though I just checked and 
verified that /bin/sh is a symlink to it).  Are you saying that, if no shebang 
is given, the build step ignores the SHELL variable and runs /bin/sh –ex?  This 
would explain much.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Dirk Heinrichs
Sent: Tuesday, August 25, 2015 9:59 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Bash and hard-bracket tests

Am 25.08.2015 um 15:51 schrieb Rob Mandeville:
Why does running a shell step without a shebang behave differently than it does 
with a “#!/bin/bash –ex” shebang?  Exactly what is being run without  a shebang?

What sh is, depends on your OS. It may be bash, or something else.

CentOS:
# ll =sh
lrwxrwxrwx. 1 root root 4 Nov 18  2014 /bin/sh -> bash

Ubuntu:
# ll =sh
lrwxrwxrwx 1 root root 4 Dec  2  2014 /bin/sh -> dash

HTH...

    Dirk
--
[cid:image001.gif@01D0DF1E.676E7710]
Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com<mailto:d...@recommind.com>
Skype: dirk.heinrichs.recommind
www.recommind.com<http://www.recommind.com>


Click 
here<https://www.mailcontrol.com/sr/biBNBiBbVJ!GX2PQPOmvUgfUspOYWKRbyY1g7HGtKqWXpGK2UrSzxZEh7iGY4duAOhgx6W5ulfPX405xsHCs!A==>
 to report this email as spam.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55DC7498.70609%40recommind.com<https://groups.google.com/d/msgid/jenkinsci-users/55DC7498.70609%40recommind.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

________________________________
This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0A40042D85E7C84DB443060EC44B3FD36D9CB16096%40dekaexchange07.deka.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to