25 lines
826 B
Diff
25 lines
826 B
Diff
From 4b0f8a65e71da4ba05ac7850cd2f20fb11f1e174 Mon Sep 17 00:00:00 2001
|
|
From: wangmengc <wangmengc@uniontech.com>
|
|
Date: Mon, 8 Apr 2024 15:31:41 +0800
|
|
Subject: [PATCH 4/8] fix exec -c exec -l Redundant output
|
|
|
|
---
|
|
builtins_rust/exec/src/lib.rs | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/builtins_rust/exec/src/lib.rs b/builtins_rust/exec/src/lib.rs
|
|
index 4edefab..2e14b41 100644
|
|
--- a/builtins_rust/exec/src/lib.rs
|
|
+++ b/builtins_rust/exec/src/lib.rs
|
|
@@ -199,7 +199,6 @@ pub extern "C" fn r_exec_builtin(mut list: *mut WordList) -> i32 {
|
|
} else {
|
|
//exec后直接给命令
|
|
command = search_for_command(*args.offset(0), 1);
|
|
- println!("command:{}", CStr::from_ptr(command).to_str().unwrap());
|
|
}
|
|
|
|
if command.is_null() {
|
|
--
|
|
2.43.0
|
|
|