Rebase to tcsh-6.22.00

This commit is contained in:
Jan Macku 2019-11-29 12:39:41 +01:00
parent 0e2d31e279
commit 7406237d43
4 changed files with 9 additions and 46 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@ tcsh-6.17.00.tar.gz
/tcsh-6.19.00.tar.gz
/tcsh-6.20.00.tar.gz
/tcsh-6.21.00.tar.gz
/tcsh-TCSH6_22_00.tar.gz
/tcsh-6.22.00.tar.gz

View File

@ -1 +1 @@
SHA512 (tcsh-6.21.00.tar.gz) = d7f46588a35b9cd01cfa33d0f9bbae09e9692605b5c045c2b58e66dba958ab904ddfe45aa7361767034e6cc03a34ad9ba4d14fa836df723bade29f3f6a18a46c
SHA512 (tcsh-6.22.00.tar.gz) = 533d61a4870fcbf759a07347578a20557865a2bc363c971210bd86f17439c3188352a502cfd09f0b134d41ec9df5c174d017f15fe3a54c63ab35034b9cf2ccaf

View File

@ -1,42 +0,0 @@
diff --git a/sh.c b/sh.c
index 4b5c624..dd87172 100644
--- a/sh.c
+++ b/sh.c
@@ -237,6 +237,7 @@ main(int argc, char **argv)
int nofile = 0;
volatile int nverbose = 0;
volatile int rdirs = 0;
+ volatile int exitcode = 0;
int quitit = 0;
Char *cp;
#ifdef AUTOLOGOUT
@@ -1390,6 +1391,12 @@ main(int argc, char **argv)
if (targinp) {
+ /* If this -c command caused an error before, skip processing */
+ if (reenter && arginp) {
+ exitcode = 1;
+ goto done;
+ }
+
arginp = SAVE(targinp);
/*
* we put the command into a variable
@@ -1422,6 +1429,7 @@ main(int argc, char **argv)
*/
process(setintr);
+done:
/*
* Mop-up.
*/
@@ -1443,7 +1451,7 @@ main(int argc, char **argv)
}
record();
exitstat();
- return (0);
+ return exitcode;
}
void

View File

@ -12,8 +12,8 @@
Name: tcsh
Summary: An enhanced version of csh, the C shell
Version: 6.21.00
Release: 3%{?dist}
Version: 6.22.00
Release: 1%{?dist}
License: BSD
URL: http://www.tcsh.org/
@ -42,7 +42,6 @@ BuildRequires: ncurses-devel
# Upstream patches -- official upstream patches released by upstream since the
# ---------------- last rebase that are necessary for any reason:
Patch000: tcsh-6.21.00-000-failing-exit-command-causes-infinite-loop.patch
# Downstream patches -- these should be always included when doing rebase:
# ------------------
@ -176,6 +175,10 @@ fi
# =============================================================================
%changelog
* Fri Nov 29 2019 Jan Macku <jamacku@redhat.com> - 6.22.00-1
- Update to tcsh-6.22.00
- Drop tcsh-6.21.00-000-failing-exit-command-causes-infinite-loop.patch - applied by upstream
* Fri Oct 25 2019 Jan Macku <jamacku@redhat.com> - 6.21.00-3
- Added upstream patch to fix infinite loop caused by exit command