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

执行 examples/quickstart test.sh 报错。 #1

Open
xiao-peng-yu opened this issue Dec 21, 2023 · 2 comments
Open

执行 examples/quickstart test.sh 报错。 #1

xiao-peng-yu opened this issue Dec 21, 2023 · 2 comments
Assignees

Comments

@xiao-peng-yu
Copy link

下载release 界面的包。
执行 sh test.sh 报错。
image

@maoshuai
Copy link
Owner

可以提供一下您使用的服务器环境参数吗?

@maoshuai maoshuai self-assigned this Dec 23, 2023
@maoshuai
Copy link
Owner

simplog4sh使用了exec进程替换,以实现将控制台的标准输出复制到日志文件里。但这个功能只支持bash。
我看截图里,你用sh执行了test.sh,默认的sh可能不是bash,导致上述报错。实际上test.sh里面已经制定了运行解释器是bash,您可以直接执行./test.sh,应该就不会报错了。
也请提供一下你的测试环境,我看一下能否做到兼容,谢谢!

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