We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831eb9d commit 941aa62Copy full SHA for 941aa62
src/main.rs
@@ -90,6 +90,7 @@ fn main() {
90
for i in 1..len {
91
if args[i] == "-c" {
92
c_flag = true;
93
+ io::close(0, &format!("sush(fatal): cannot close stdin"));
94
if i == len-1 {
95
eprintln!("bash: -c: option requires an argument");
96
process::exit(2);
0 commit comments