diff options
Diffstat (limited to 'script/public-inbox-edit')
-rwxr-xr-x | script/public-inbox-edit | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script/public-inbox-edit b/script/public-inbox-edit index f2090abf..24b7ed8b 100755 --- a/script/public-inbox-edit +++ b/script/public-inbox-edit @@ -149,7 +149,11 @@ retry_edit: chomp(my $op = <STDIN> || ''); $op = lc($op); goto retry_edit if $op eq 'r'; - exit $? if $op eq 'q'; + if ($op eq 'q') { + # n.b. we'll lose the exit signal, here, + # oh well; "q" is user-specified anyways. + exit($? >> 8); + } last if $op eq 'c'; # continuing print STDERR "\`$op' not recognized\n"; } |