Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh-3.1.4 bug, parsing case ... esac



The following code, when executed in zsh running as /bin/sh produces
the error messages:
zsh: parse error near `echo'
zsh: parse error in command substitution

"BISON=`if [ -f /usr/src/egcs-1.1a/gcc/../bison/bison ] ; then
		case . in
		/*) echo /usr/src/egcs-1.1a/gcc/../bison/bison -L ./../bison/ ;;
		*) echo /usr/src/egcs-1.1a/gcc/../bison/bison -L /usr/src/egcs-1.1a/gcc/./../bison/ ;;
		esac else echo bison ;
	fi`"

adding a semicolon after the esac makes the messages go away, but I
think this should work as is.

This test case came from egcs-1.1a and causes the build to break.



Messages sorted by: Reverse Date, Date, Thread, Author