Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jul 19, 2024
1 parent 0f8c317 commit 6efeb3f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tests/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,12 @@ fn no_arguments_with_default_script_interpreter() {
[script]
foo:
[ $- == *e* ] && echo '-e is set'
[ $- == *u* ] && echo '-u is set'
if [[ $- == *e* ]]; then
echo '-e is set'
fi
if [[ $- == *u* ]]; then
echo '-u is set'
fi
",
)
.stdout(
Expand All @@ -316,8 +320,12 @@ fn no_arguments_with_non_default_script_interpreter() {
[script]
foo:
[ $- == *e* ] || echo '-e is not set'
[ $- == *u* ] || echo '-u is not set'
if [[ $- != *e* ]]; then
echo '-e is not set'
fi
if [[ $- != *u* ]]; then
echo '-u is not set'
fi
",
)
.stdout(
Expand Down

0 comments on commit 6efeb3f

Please sign in to comment.