baohaojun / beagrep

Grep 2G source code in 0.23 second.
http://baohaojun.github.com/beagrep.html
Other
108 stars 20 forks source link

在cygwin下执行报错 #9

Closed zbjxb closed 6 years ago

zbjxb commented 6 years ago

$ ./build-win.sh : invalid optionline 2: set: - set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] ./build-win.sh: line 7: syntax error near unexpected token $'in\r'' '/build-win.sh: line 7: case "$1" in

baohaojun commented 6 years ago

I have no idea what is this error. Have you changed the file? Seems your output is confusing. The line 2 is a very simple ``set -ex'', which is perfectly standard bash. So I'm thinking maybe your cygwin environment is buggy?

Anyway, I have stopped working on cygwin version of beagrep long time ago. If you want to try, I'd recommend you to try it on Win10+Ubuntu (which I myself have not tried, but heard is very promising).