Test bare bash path in shebang on windows (#2144)
This commit is contained in:
parent
4f16428bcb
commit
637023e86f
@ -106,6 +106,8 @@ mod timestamps;
|
|||||||
mod undefined_variables;
|
mod undefined_variables;
|
||||||
mod unexport;
|
mod unexport;
|
||||||
mod unstable;
|
mod unstable;
|
||||||
|
#[cfg(windows)]
|
||||||
|
mod windows;
|
||||||
#[cfg(target_family = "windows")]
|
#[cfg(target_family = "windows")]
|
||||||
mod windows_shell;
|
mod windows_shell;
|
||||||
mod working_directory;
|
mod working_directory;
|
||||||
|
15
tests/windows.rs
Normal file
15
tests/windows.rs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn bare_bash_in_shebang() {
|
||||||
|
Test::new()
|
||||||
|
.justfile(
|
||||||
|
"
|
||||||
|
default:
|
||||||
|
#!bash
|
||||||
|
echo FOO
|
||||||
|
",
|
||||||
|
)
|
||||||
|
.stdout("FOO\n")
|
||||||
|
.run();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user