Skip to content
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

搜索 keyword 支持中括号 [ ] #25

Open
imageslr opened this issue Apr 17, 2022 · 3 comments
Open

搜索 keyword 支持中括号 [ ] #25

imageslr opened this issue Apr 17, 2022 · 3 comments

Comments

@imageslr
Copy link

现在如果搜索内容包括了中括号,会报错”grep: brackets ([ ]) not balanced“

@imageslr
Copy link
Author

目前这样修复了:

query=`echo "{query}" | sed 's/\[/\\\[/g'`
./search.sh "$query"

@tianhao
Copy link
Owner

tianhao commented Apr 19, 2022

明天我修复一下

@imageslr
Copy link
Author

感谢。最好是 $() 这些 shell 关键字都能转义一下。不过我不是很懂 shell,没找到好方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants