diff --git a/tcsh-6.24.00-which.dif b/tcsh-6.24.00-which.dif new file mode 100644 index 0000000..fb855be --- /dev/null +++ b/tcsh-6.24.00-which.dif @@ -0,0 +1,26 @@ +From: Jamie Landeg-Jones +Message-Id: <202202021648.212GmqTP022048@donotpassgo.dyslexicfish.net> + +Basically, I noticed my aliases were out of wack. I discovered that "which" +is no longer returning error 1 if a command is not found. + +It seems that when "setcopy" was changed in some cases to "setstatus", a mistake +was made. + +This is the fix: + +--- + tc.func.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- tc.func.c ++++ tc.func.c 2022-02-03 07:53:14.442853165 +0000 +@@ -503,7 +503,7 @@ dowhich(Char **v, struct command *c) + rv &= cmd_expand(*v, NULL); + + if (!rv) +- setstatus(0); ++ setstatus(1); + } + + static int diff --git a/tcsh.changes b/tcsh.changes index 0ec26e9..2f1d7b5 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 3 07:56:15 UTC 2022 - Dr. Werner Fink + +- Add patch tcsh-6.24.00-which.dif from upstream mailing list + to fix bug in which builtin, that is return error if a command + is not found + ------------------------------------------------------------------- Wed Feb 2 13:46:57 UTC 2022 - Dr. Werner Fink diff --git a/tcsh.spec b/tcsh.spec index 15f356e..bf99f07 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -31,6 +31,7 @@ Source4: tcsh.keyring Patch0: tcsh-6.21.00.dif Patch1: tcsh-6.15.00-pipe.dif Patch2: tcsh-6.16.00-norm-cmd.dif +Patch3: tcsh-6.24.00-which.dif Patch4: tcsh-6.18.03-colorls.dif Patch5: tcsh-6.17.06-dspmbyte.dif Patch6: tcsh-6.18.03-catalogs.dif @@ -57,6 +58,7 @@ correction, a history mechanism, job control, and a C-like syntax. %setup -q %patch1 -b .pipe %patch2 -b .normcmd +%patch3 -b .whichbug %patch4 -b .colorls %patch5 -b .dspmbyte %patch6 -b .catalogs