[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fwd: [Linux] Hook hashbang hardships

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Wed, 12 Oct 2016 11:03:05 +0000

Dario Niedermann wrote on Wed, Oct 12, 2016 at 12:04:03 +0200:
> Returning to the original topic, and just to be even clearer: this is
> about Subversion NOT RUNNING a script because it has a FLAG FOR THE
> SHELL in its SHEBANG LINE. Not because I got the path to bash wrong or
> because there is some other error in my script (as should be *OBVIOUS*
> from my very first email).

There is no need to shout. Mario's theory was entirely plausible: if
some command in the script returns non-zero and prints nothing to
stderr, that will entirely explains the symptoms you saw, both before
and after removing the -e.

This relies on knowing that -e to sh means "exit the shell as soon as
any command exits non-zero".

The minimum example of this theory is:
[[[
#!/bin/sh -e
false
true
]]]

Cheers,

Daniel
Received on 2016-10-12 13:03:11 CEST

This is an archived mail posted to the Subversion Dev mailing list.