1998-07-04 03:20:40 +00:00
|
|
|
--- ../../tcsh-6.07.06/sh.func.c Sun Jun 21 10:45:27 1998
|
|
|
|
+++ sh.func.c Sun Jun 21 11:27:31 1998
|
|
|
|
@@ -1279,6 +1279,9 @@
|
1997-12-27 19:04:12 +00:00
|
|
|
struct command *c;
|
|
|
|
{
|
|
|
|
Char *vp, *lp;
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+ static int catclosed = 0;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
USE(c);
|
|
|
|
if (*++v == 0) {
|
1998-07-04 03:20:40 +00:00
|
|
|
@@ -1322,7 +1325,15 @@
|
|
|
|
# ifdef LC_MESSAGES
|
1997-12-27 19:04:12 +00:00
|
|
|
(void) setlocale(LC_MESSAGES, "");
|
1998-07-04 03:20:40 +00:00
|
|
|
# endif /* LC_MESSAGES */
|
|
|
|
+# ifdef __FreeBSD__
|
1997-12-27 19:04:12 +00:00
|
|
|
+ /* This code is to avoid bug. */
|
|
|
|
+ if (catclosed)
|
1998-07-04 03:20:40 +00:00
|
|
|
+ (void) catclose(catd);
|
1997-12-27 19:04:12 +00:00
|
|
|
+ else
|
1998-07-04 03:20:40 +00:00
|
|
|
+ catclosed = 1;
|
|
|
|
+# else
|
|
|
|
(void) catclose(catd);
|
1997-12-27 19:04:12 +00:00
|
|
|
+# endif /* __FreeBSD__ */
|
|
|
|
nlsinit();
|
1998-07-04 03:20:40 +00:00
|
|
|
# endif /* NLS_CATALOGS */
|
1997-12-27 19:04:12 +00:00
|
|
|
# ifdef LC_CTYPE
|