-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix escaping for Makefile under Windows #10577
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I felt a need to make this joke a second time.
Gitea is a self-hosted Git service written in Makefile
This does break it on Cygwin for me
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need something better to not break Cygwin.
@jolheiser what exact environment are you running in? |
@jolheiser @silverwind Could you both try with this, please?:
|
Yes, it appears '(' works on Cygwin. |
@silverwind I run on Windows 10, Git Bash using MINGW64. And |
I'll try this in Git Bash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇
Looks like macOS |
@guillep2k we need one more change for Darwin and BSD which do not know the
So for Darwin/BSD (-E before path is required):
And all others:
I guess we can do something similar to the |
Continuation of go-gitea#10577 This version also includes an additional fix for Darwin and FreeBSD which do not accept the `-regextype` option, but only `-E` and the argument order is specifically required like this for `-E` to work.
Continuation of #10577 This version also includes an additional fix for Darwin and FreeBSD which do not accept the `-regextype` option, but only `-E` and the argument order is specifically required like this for `-E` to work. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Uses different find
\(
and\)
escaping for Windows and Linux.