-/* $NetBSD: cd.c,v 1.14 1995/11/19 23:27:37 christos Exp $ */
+/* $NetBSD: cd.c,v 1.15 1996/03/01 01:58:58 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993
#if 0
static char sccsid[] = "@(#)cd.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$NetBSD: cd.c,v 1.14 1995/11/19 23:27:37 christos Exp $";
+static char rcsid[] = "$NetBSD: cd.c,v 1.15 1996/03/01 01:58:58 jtc Exp $";
#endif
#endif /* not lint */
#if defined(__NetBSD__) || defined(__svr4__)
if (getcwd(buf, sizeof(buf)) == NULL)
error("getcwd() failed");
+ curdir = savestr(buf);
#else
{
char *p;
error("pwd command failed");
p[-1] = '\0';
}
-#endif
curdir = savestr(buf);
INTON;
+#endif
}
-/* $NetBSD: shell.h,v 1.8 1995/05/11 21:30:22 christos Exp $ */
+/* $NetBSD: shell.h,v 1.9 1996/03/01 01:59:00 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993