Update to tcsh V6.22.03

OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=106
This commit is contained in:
Dr. Werner Fink 2020-11-20 11:54:44 +00:00 committed by Git OBS Bridge
parent 487604ff0e
commit eff28e87fb
10 changed files with 35 additions and 58 deletions

View File

@ -4,7 +4,7 @@
--- sh.dol.c
+++ sh.dol.c 2016-11-25 08:00:30.455106978 +0000
@@ -426,6 +426,8 @@ Dgetdol(void)
@@ -428,6 +428,8 @@ Dgetdol(void)
size_t cbp = 0;
int old_pintr_disabled;

View File

@ -52,7 +52,7 @@
# endif /* SETLOCALEBUG */
--- sh.set.c
+++ sh.set.c 2016-11-25 08:02:39.616478025 +0000
@@ -1164,11 +1164,11 @@ update_dspmbyte_vars(void)
@@ -1160,11 +1160,11 @@ update_dspmbyte_vars(void)
dstr1 = vp->vec[0];
if(eq (dstr1, STRsjis))
iskcode = 1;
@ -66,7 +66,7 @@
iskcode = 4;
else if ((dstr1[0] - '0') >= 0 && (dstr1[0] - '0') <= 3) {
iskcode = 0;
@@ -1252,7 +1252,7 @@ update_dspmbyte_vars(void)
@@ -1248,7 +1248,7 @@ update_dspmbyte_vars(void)
_enable_mbdisp = 0;
dspmbyte_ls = 0;
}
@ -75,7 +75,7 @@
{
Char mbmapstr[300];
for (lp = 0; lp < 256; lp++)
@@ -1260,7 +1260,7 @@ update_dspmbyte_vars(void)
@@ -1256,7 +1256,7 @@ update_dspmbyte_vars(void)
mbmapstr[lp] = 0;
setcopy(STRmbytemap, mbmapstr, VAR_READWRITE);
}
@ -84,7 +84,7 @@
}
/* dspkanji/dspmbyte autosetting */
@@ -1269,6 +1269,7 @@ void
@@ -1265,6 +1265,7 @@ void
autoset_dspmbyte(const Char *pcp)
{
int i;
@ -92,7 +92,7 @@
static const struct dspm_autoset_Table {
Char *n;
Char *v;
@@ -1291,13 +1292,18 @@ autoset_dspmbyte(const Char *pcp)
@@ -1287,13 +1288,18 @@ autoset_dspmbyte(const Char *pcp)
#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
static const struct dspm_autoset_Table dspmc[] = {
{ STRstarutfstar8, STRutf8 },

View File

@ -143,8 +143,8 @@
if (path == NULL)
return;
- (void) xsnprintf(trypath, sizeof(trypath), "%s/en/LC_MESSAGES/tcsh.cat",
+ (void) xsnprintf(trypath, sizeof(trypath), "%s/en/LC_MESSAGES/tcsh",
- (void) xsnprintf(trypath, sizeof(trypath), "%s/C/LC_MESSAGES/tcsh.cat",
+ (void) xsnprintf(trypath, sizeof(trypath), "%s/C/LC_MESSAGES/tcsh",
path);
if (stat(trypath, &st) == -1)
return;

View File

@ -1,21 +0,0 @@
Date: Fri, 10 Jul 2020 18:13:45 +0200
From tcsh-bounces@astron.com Fri Jul 10 16:49:57 2020
From: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
To: tcsh@astron.com
Subject: [Tcsh] ~~ expansion broken again
Return-Path: <tcsh-bounces@astron.com>
User-Agent: Mutt/1.12.2 (2019-09-21)
Sender: Tcsh <tcsh-bounces@astron.com>
--- sh.glob.c
+++ sh.glob.c 2017-04-05 12:54:37.623870649 +0000
@@ -74,6 +74,9 @@ globtilde(Char *s)
{
Char *name, *u, *home, *res;
+ if (s[1] == '~')
+ return s;
+
u = s;
for (s++; *s && *s != '/' && *s != ':'; s++)
continue;

View File

@ -1,20 +0,0 @@
Subject: [Tcsh] tcsh 6.22.00 does not merge history (was: Re: tcsh Deadlock with SIGHUP)
Message-ID: <20200223205556.GA2917@panix.com>
References: <20200120140836.GA3123@panix.com>
<D3B9BAFA-5D5C-4023-B7E3-06D1CA429777@zoulas.com>
---
sh.hist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- sh.hist.c
+++ sh.hist.c 2020-02-24 12:21:37.003639844 +0000
@@ -1295,7 +1295,7 @@ rechist(Char *fname, int ref)
#endif
}
getexit(osetexit);
- if (setexit())
+ if (!setexit())
loadhist(fname, 1);
resexit(osetexit);
}

View File

@ -186,7 +186,7 @@ Avoid left over dot lock file after reboot
}
/* Save history before exiting the shell. */
@@ -1284,11 +1286,12 @@ rechist(Char *fname, int ref)
@@ -1288,11 +1290,12 @@ rechist(Char *fname, int ref)
jmp_buf_t osetexit;
if (lock) {
#ifndef WINNT_NATIVE

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed287158ca1b00ba477e8ea57bac53609838ebcfd05fcb05ca95021b7ebe885b
size 1006405

3
tcsh-6.22.03.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be2cfd653d2a0c7f506d2dd14c12324ba749bd484037be6df44a3973f52262b7
size 1012758

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Nov 20 11:48:50 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Update to tcsh bug fix version V6.22.03 - 20201118
* Fix $x:q:h and $x:q:t to not crash (alzwded) with strings containing /
* Block SIGHUP while writing history/directory stack (Brett Frankenberger)
* Fixed reversed test that broke history merging (Brett Frankenberger)
* Prevent recursive entry for writing history (Brett Frankenberger)
* alxwded@github, keep track of the :g and :a modifiers per modifier they
affect.
* alzwded@github, fix infinite loop with :gas variable modifier
* PR/88: Add a Q: modifier that preserves empty arguments leaving :q
alone.
- Port the patches to V6.22.03
* tcsh-6.15.00-pipe.dif
* tcsh-6.17.06-dspmbyte.dif
* tcsh-6.18.03-catalogs.dif
* tcsh-6.22.02-local-dotlock.dif
- Remove patches now upstream
* tcsh-6.22.02-double_tilde.dif
* tcsh-6.22.02-history-merge.dif
-------------------------------------------------------------------
Wed Jul 15 07:34:33 UTC 2020 - Dr. Werner Fink <werner@suse.de>

View File

@ -17,7 +17,7 @@
Name: tcsh
Version: 6.22.02
Version: 6.22.03
Release: 0
Summary: The C SHell
License: BSD-3-Clause
@ -34,8 +34,6 @@ Patch5: tcsh-6.17.06-dspmbyte.dif
Patch6: tcsh-6.18.03-catalogs.dif
Patch7: tcsh-6.22.02-workaround-common.patch
Patch8: tcsh-6.22.02-local-dotlock.dif
Patch9: tcsh-6.22.02-history-merge.dif
Patch10: tcsh-6.22.02-double_tilde.dif
BuildRequires: autoconf
BuildRequires: fdupes
BuildRequires: ncurses-devel
@ -63,8 +61,6 @@ correction, a history mechanism, job control, and a C-like syntax.
%patch6 -b .catalogs
%patch7 -p 1 -b .workaround
%patch8 -p 0 -b .dotlock
%patch9 -p 0 -b .histmrg
%patch10 -p0 -b .dbltilde
%patch0 -b .0
%build