Thread (31 messages) flat view 31 messages, 8 authors, 2016-06-15

Re: [PATCH 2/5] git-request-pull.sh: remove -e switch to shell interpreter which breaks ksh

From: Brandon Casey <hidden>
Date: 2016-06-15 22:48:54

On 06/01/2010 11:30 PM, Jonathan Nieder wrote:
Brandon Casey wrote:
quoted
When git-request-pull was originally written, it did not do any error
checking and it used this shell feature to exit when an error occurred.
This script now performs proper error checking and provides useful error
messages, so this -e option appears to be merely a historical artifact and
can be removed.
Also, the MinGW port ignores -e on a #! line, so we should not rely on it.
quoted
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
To maintain the old behavior, I think we would need something like
this:

-- 8< --
Subject: request-pull: more explicit error handling
works for me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help