There was an error while loading. Please reload this page.
1 parent febd2fe commit 7252202Copy full SHA for 7252202
1 file changed
kernel/src/vfs/exec/shebang.rs
@@ -42,6 +42,7 @@ impl ExecFormat for ShebangFormat {
42
// Parse the shebang command line.
43
let mut args = interp
44
.split(|&x| x == b' ')
45
+ .filter(|x| !x.is_empty()) // Skip whitespace.
46
.map(|x| x.to_vec())
47
.collect::<Vec<_>>();
48
args.append(&mut info.argv); // Append the rest to argv.
0 commit comments