Skip to content

Commit

Permalink
add some test scripts that currently fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 7, 2024
1 parent 3a0c79d commit 129cc6a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/deno_task_shell/src/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COMMENT = _{ "#" ~ (!NEWLINE ~ ANY)* }
QUOTED_WORD = { DOUBLE_QUOTED | SINGLE_QUOTED }

UNQUOTED_PENDING_WORD = ${
(!(RESERVED_WORD | WHITESPACE | OPERATOR | NEWLINE) ~ (
(!RESERVED_WORD ~ !(WHITESPACE | OPERATOR | NEWLINE) ~ (
EXIT_STATUS |
UNQUOTED_ESCAPE_CHAR |
SUB_COMMAND |
Expand Down
4 changes: 4 additions & 0 deletions scripts/for_loop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for i in {1,2,3}
do
echo "Number: $i"
done
5 changes: 5 additions & 0 deletions scripts/if_else.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if [[ $FOO == "bar" ]] then
echo "FOO is bar"
else
echo "FOO is not bar"
fi
5 changes: 5 additions & 0 deletions scripts/while_loop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
COUNTER=0
while [ $COUNTER -lt 10 ]; do
echo The counter is $COUNTER
let COUNTER=COUNTER+1
done

0 comments on commit 129cc6a

Please sign in to comment.