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

os.iorun os.exec 等 api 不支持管道 #5997

Open
CN-Zxcv opened this issue Dec 20, 2024 · 2 comments
Open

os.iorun os.exec 等 api 不支持管道 #5997

CN-Zxcv opened this issue Dec 20, 2024 · 2 comments
Labels

Comments

@CN-Zxcv
Copy link

CN-Zxcv commented Dec 20, 2024

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)

@CN-Zxcv CN-Zxcv added the bug label Dec 20, 2024
@Issues-translate-bot
Copy link

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

@waruqi
Copy link
Member

waruqi commented Dec 20, 2024

stdout = stdout_wpipe, stderr = stdout_wpipe, stdin = stdin_rpipe,

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

No branches or pull requests

3 participants