5 Star 0 Fork 7

src-openEuler/utshell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-fix-coproc-command-error.patch 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
From 963b01517eb7ff9823987643515d0818ad8e037c Mon Sep 17 00:00:00 2001
From: wangmengc <wangmengc@uniontech.com>
Date: Thu, 13 Mar 2025 14:55:55 +0800
Subject: [PATCH] fix coproc command error
---
r_print_cmd/src/lib.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/r_print_cmd/src/lib.rs b/r_print_cmd/src/lib.rs
index fee41ed..ffdded9 100644
--- a/r_print_cmd/src/lib.rs
+++ b/r_print_cmd/src/lib.rs
@@ -185,14 +185,14 @@ unsafe fn make_command_string_internal(command:*mut COMMAND)
indent(indentation);
}
- if (*command).flags != 0 && CMD_TIME_PIPELINE != 0{
+ if (*command).flags & CMD_TIME_PIPELINE as i32 != 0{
cprintf(b"time \0" as *const u8 as *const c_char);
- if (*command).flags != 0 && CMD_TIME_POSIX != 0{
+ if (*command).flags & CMD_TIME_POSIX as i32 != 0{
cprintf(b"-p \0" as *const u8 as *const c_char);
}
}
- if (*command).flags != 0 && CMD_INVERT_RETURN != 0{
+ if (*command).flags & CMD_INVERT_RETURN as i32 != 0{
cprintf(b"! \0" as *const u8 as *const c_char);
}
// (*command).type_ = 11;
--
2.39.3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/utshell.git
git@gitee.com:src-openeuler/utshell.git
src-openeuler
utshell
utshell
openEuler-25.03

搜索帮助

371d5123 14472233 46e8bd33 14472233