I'm using flex and bison in Mac OS Maverick.  I can send the bison and flex command in bash without any problem.  But when I tried to issue the command using a shell script.  I got this error./Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison: invalid option -- Try `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison --help' for more information.flex: can't open minus.lclang: error: no such file or directory: 'minus.tab.c'clang: error: no such file or directory: 'lex.yy.c': No such file or directoryutThe script is as follows:bison minus.y -dflex minus.lgcc minus.tab.c lex.yy.c -lfl -ly
bison says invalid option --
bash