Which bug
OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=125
This commit is contained in:
parent
e9e2896eca
commit
0259dc9174
26
tcsh-6.24.00-which.dif
Normal file
26
tcsh-6.24.00-which.dif
Normal 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
|
@ -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>
|
Wed Feb 2 13:46:57 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Source4: tcsh.keyring
|
|||||||
Patch0: tcsh-6.21.00.dif
|
Patch0: tcsh-6.21.00.dif
|
||||||
Patch1: tcsh-6.15.00-pipe.dif
|
Patch1: tcsh-6.15.00-pipe.dif
|
||||||
Patch2: tcsh-6.16.00-norm-cmd.dif
|
Patch2: tcsh-6.16.00-norm-cmd.dif
|
||||||
|
Patch3: tcsh-6.24.00-which.dif
|
||||||
Patch4: tcsh-6.18.03-colorls.dif
|
Patch4: tcsh-6.18.03-colorls.dif
|
||||||
Patch5: tcsh-6.17.06-dspmbyte.dif
|
Patch5: tcsh-6.17.06-dspmbyte.dif
|
||||||
Patch6: tcsh-6.18.03-catalogs.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
|
%setup -q
|
||||||
%patch1 -b .pipe
|
%patch1 -b .pipe
|
||||||
%patch2 -b .normcmd
|
%patch2 -b .normcmd
|
||||||
|
%patch3 -b .whichbug
|
||||||
%patch4 -b .colorls
|
%patch4 -b .colorls
|
||||||
%patch5 -b .dspmbyte
|
%patch5 -b .dspmbyte
|
||||||
%patch6 -b .catalogs
|
%patch6 -b .catalogs
|
||||||
|
Loading…
Reference in New Issue
Block a user