NetBSD Problem Report #207
From gnats Wed Apr 6 15:25:39 1994
Received: from forte (forte.mathematik.uni-Bremen.de [134.102.232.1]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id PAA14519 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 6 Apr 1994 15:24:29 -0700
Message-Id: <199404062208.AAA02637@forte>
Date: Thu, 7 Apr 1994 00:08:25 +0200
From: thomas@mathematik.uni-Bremen.de
Reply-To: thomas@mathematik.uni-Bremen.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: csh problems
X-Send-Pr-Version: 3.2
>Number: 207
>Category: bin
>Synopsis: csh sometimes parses things wrong
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 06 15:35:07 +0000 1994
>Closed-Date: Sat Aug 13 09:22:47 +0000 1994
>Last-Modified:
>Originator: Thomas Eberhardt
>Release:
>Organization:
CeVis, University of Bremen, Germany
>Environment:
System: NetBSD ed209 0.9a ED209#0 i386
Machine: i386
>Description:
csh sometimes parses things wrong.
>How-To-Repeat:
relatively hard. seems to depend on a lot of circumstances.
>Fix:
I've got a fix from Andrew Cagney's <acagney@macadam.mpce.mq.edu.au>
NetBSD-0.9 patch set for AUIS-6.2. After comparing things with the
tcsh-6.04 sources I've come up with the following patch that seems to
work for me:
*** dir.c- Fri Dec 17 06:45:19 1993
--- dir.c Wed Apr 6 04:10:18 1994
***************
*** 90,96 ****
if (chdir(tcp) == -1)
cp = NULL;
else
! cp = hp;
}
else
cp = NULL;
--- 90,96 ----
if (chdir(tcp) == -1)
cp = NULL;
else
! cp = Strsave(hp);
}
else
cp = NULL;
***************
*** 111,117 ****
if (hp && *hp &&
stat(tcp, &swd) != -1 && stat(short2str(hp), &shp) != -1 &&
swd.st_dev == shp.st_dev && swd.st_ino == shp.st_ino)
! cp = hp;
else {
char *cwd;
--- 111,117 ----
if (hp && *hp &&
stat(tcp, &swd) != -1 && stat(short2str(hp), &shp) != -1 &&
swd.st_dev == shp.st_dev && swd.st_ino == shp.st_ino)
! cp = Strsave(hp);
else {
char *cwd;
***************
*** 123,134 ****
swd.st_ino == shp.st_ino)
tcp = cwd;
}
! cp = dcanon(str2short(tcp), STRNULL);
}
}
dp = (struct directory *) xcalloc(sizeof(struct directory), 1);
! dp->di_name = Strsave(cp);
dp->di_count = 0;
dhead.di_next = dhead.di_prev = dp;
dp->di_next = dp->di_prev = &dhead;
--- 123,134 ----
swd.st_ino == shp.st_ino)
tcp = cwd;
}
! cp = dcanon(SAVE(tcp), STRNULL);
}
}
dp = (struct directory *) xcalloc(sizeof(struct directory), 1);
! dp->di_name = cp;
dp->di_count = 0;
dhead.di_next = dhead.di_prev = dp;
dp->di_next = dp->di_prev = &dhead;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sat Aug 13 02:22:47 PDT 1994
State-Changed-Why:
This bug is supposedly fixed. If not, please send mail and I'll re-open
the PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.