Skip to content

Commit 941aa62

Browse files
committed
Hide welcome message at -c option
1 parent 831eb9d commit 941aa62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ fn main() {
9090
for i in 1..len {
9191
if args[i] == "-c" {
9292
c_flag = true;
93+
io::close(0, &format!("sush(fatal): cannot close stdin"));
9394
if i == len-1 {
9495
eprintln!("bash: -c: option requires an argument");
9596
process::exit(2);

0 commit comments

Comments
 (0)