fix behavior change of head/tail modifiers
OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=111
This commit is contained in:
parent
2dfbde3fa2
commit
58cd9ba237
27
tcsh-6.22.03-unintentional.patch
Normal file
27
tcsh-6.22.03-unintentional.patch
Normal file
@ -0,0 +1,27 @@
|
||||
Subject: Re: [Tcsh] change in head/tail handling in tcsh-6.22.03
|
||||
Return-Path: <tcsh-bounces@astron.com>
|
||||
In-Reply-To: <CMM.0.95.0.1606054208.beebe@gamma.math.utah.edu>
|
||||
X-Mailer: Apple Mail (2.3654.20.0.2.21)
|
||||
Sender: Tcsh <tcsh-bounces@astron.com>
|
||||
|
||||
It was unintentional so a bug...
|
||||
|
||||
christos
|
||||
|
||||
---
|
||||
sh.lex.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/sh.lex.c b/sh.lex.c
|
||||
index fdd24bc..9df132d 100644
|
||||
--- a/sh.lex.c
|
||||
+++ b/sh.lex.c
|
||||
@@ -1046,7 +1046,7 @@ domod(Char *cp, Char type)
|
||||
case 't':
|
||||
wp = Strrchr(cp, '/');
|
||||
if (wp == NULL)
|
||||
- return Strsave(type == 't' ? cp : STRNULL);
|
||||
+ return type == 't' ? Strsave(cp) : NULL;
|
||||
if (type == 't')
|
||||
xp = Strsave(wp + 1);
|
||||
else
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 30 13:26:45 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Add patch tcsh-6.22.03-unintentional.patch
|
||||
* fix unintentional bug of the head/tail modifiers
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 20 11:48:50 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
@ -33,6 +33,7 @@ Patch4: tcsh-6.18.03-colorls.dif
|
||||
Patch5: tcsh-6.17.06-dspmbyte.dif
|
||||
Patch6: tcsh-6.18.03-catalogs.dif
|
||||
Patch8: tcsh-6.22.02-local-dotlock.dif
|
||||
Patch9: tcsh-6.22.03-unintentional.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: ncurses-devel
|
||||
@ -59,6 +60,7 @@ correction, a history mechanism, job control, and a C-like syntax.
|
||||
%patch5 -b .dspmbyte
|
||||
%patch6 -b .catalogs
|
||||
%patch8 -p 0 -b .dotlock
|
||||
%patch9 -p 1 -b .unint
|
||||
%patch0 -b .0
|
||||
|
||||
%build
|
||||
|
Loading…
Reference in New Issue
Block a user