diff --git a/tcsh-6.22.03-unintentional.patch b/tcsh-6.22.03-unintentional.patch new file mode 100644 index 0000000..d936d59 --- /dev/null +++ b/tcsh-6.22.03-unintentional.patch @@ -0,0 +1,27 @@ +Subject: Re: [Tcsh] change in head/tail handling in tcsh-6.22.03 +Return-Path: +In-Reply-To: +X-Mailer: Apple Mail (2.3654.20.0.2.21) +Sender: Tcsh + +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 diff --git a/tcsh.changes b/tcsh.changes index d4c0508..8a941d8 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 30 13:26:45 UTC 2020 - Dr. Werner Fink + +- 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 diff --git a/tcsh.spec b/tcsh.spec index 4f2d568..505221f 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -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