delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/02/14:31:10

From: jeffdb AT netzone DOT com ("Mikey")
Subject: bash && bug real fix
2 Mar 1997 14:31:10 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199703022107.OAA14656.cygnus.gnu-win32@nz1.netzone.com>
Mime-Version: 1.0
Original-To: "cygnus" <gnu-win32 AT cygnus DOT com>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Original-Sender: owner-gnu-win32 AT cygnus DOT com

it looks like the bug I reported earlier was a 1 off error between y.tab.h
and y.tab.c
here's the real fix (I think). ;^)

(at least && works correctly now under both linux and win32 but glob is
still broken under win32)

--- ../../cygwin32/bash/y.tab.h.orig	Sun Mar 02 12:39:23 1997
+++ y.tab.h	Sun Mar 02 12:46:31 1997
@@ -7,37 +7,37 @@
   ELEMENT element;
   PATTERN_LIST *pattern;
 } YYSTYPE;
-#define	IF	258
-#define	THEN	259
-#define	ELSE	260
-#define	ELIF	261
-#define	FI	262
-#define	CASE	263
-#define	ESAC	264
-#define	FOR	265
-#define	SELECT	266
-#define	WHILE	267
-#define	UNTIL	268
-#define	DO	269
-#define	DONE	270
-#define	FUNCTION	271
-#define	IN	272
-#define	BANG	273
-#define	WORD	274
-#define	ASSIGNMENT_WORD	275
-#define	NUMBER	276
-#define	AND_AND	277
-#define	OR_OR	278
-#define	GREATER_GREATER	279
-#define	LESS_LESS	280
-#define	LESS_AND	281
-#define	GREATER_AND	282
-#define	SEMI_SEMI	283
-#define	LESS_LESS_MINUS	284
-#define	AND_GREATER	285
-#define	LESS_GREATER	286
-#define	GREATER_BAR	287
-#define	yacc_EOF	288
-
+#define	IF	257
+#define	THEN	258
+#define	ELSE	259
+#define	ELIF	260
+#define	FI	261
+#define	CASE	262
+#define	ESAC	263
+#define	FOR	264
+#define	SELECT	265
+#define	WHILE	266
+#define	UNTIL	267
+#define	DO	268
+#define	DONE	269
+#define	FUNCTION	270
+#define	IN	271
+#define	BANG	272
+#define	WORD	273
+#define	ASSIGNMENT_WORD	274
+#define	NUMBER	275
+#define	AND_AND	276
+#define	OR_OR	277
+#define	GREATER_GREATER	278
+#define	LESS_LESS	279
+#define	LESS_AND	280
+#define	GREATER_AND	281
+#define	SEMI_SEMI	282
+#define	LESS_LESS_MINUS	283
+#define	AND_GREATER	284
+#define	LESS_GREATER	285
+#define	GREATER_BAR	286
+#define	yacc_EOF	287
+#define YYERRCODE 256
 
 extern YYSTYPE yylval;

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019