We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.9.6
rockylinux9
local out, err = os.iorun("gcc --version | head -1") 期望是只得到第一行,但是返回了整个输出
管道或者其他替代方案
target("test")
target('test') before_build(function (target) local out, err = os.iorun("gcc --version | head -1") print(out, err) end) on_build(function() end)
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: os.iorun os.exec and other APIs do not support pipes
Sorry, something went wrong.
xmake/xmake/modules/private/service/remote_build/server_session.lua
Line 264 in 4f408eb
No branches or pull requests
Xmake 版本
2.9.6
操作系统版本和架构
rockylinux9
描述问题
local out, err = os.iorun("gcc --version | head -1")
期望是只得到第一行,但是返回了整个输出
期待的结果
管道或者其他替代方案
工程配置
target("test")
附加信息和错误日志
target('test')
before_build(function (target)
local out, err = os.iorun("gcc --version | head -1")
print(out, err)
end)
on_build(function()
end)
The text was updated successfully, but these errors were encountered: