Dr. Werner Fink 2022-02-03 07:57:29 +00:00 committed by Git OBS Bridge
parent e9e2896eca
commit 0259dc9174
3 changed files with 35 additions and 0 deletions

26
tcsh-6.24.00-which.dif Normal file
View File

@ -0,0 +1,26 @@
From: Jamie Landeg-Jones <jamie@catflap.org>
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 3 07:56:15 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- 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 <werner@suse.de>

View File

@ -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