tcsh/tcsh-6.22.03-unintentional.patch

28 lines
714 B
Diff

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