Replies: 2 comments
-
Title: os.iorun os.exec and other APIs do not support pipes |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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)
Beta Was this translation helpful? Give feedback.
All reactions