Skip to content

Commit

Permalink
test: added a test for backtick in quoted string
Browse files Browse the repository at this point in the history
  • Loading branch information
sopos committed Feb 8, 2021
1 parent 3745564 commit 9217d1b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,17 @@ distro < rhel-8: False
distro < rhel-8.3: False
'
)
DEBUG=1 check 0 "quoted string"
check 0 "quoted string"


yaml_data=$(cat - << 'EOF'
description: "code which should not be actually executed during the proseccing `false`"
EOF
)
declare -A expected=(
[description]="code which should not be actually executed during the proseccing \`false\`"
)
check 0 "backticks in the string"


echo _______________________________________________
Expand Down

0 comments on commit 9217d1b

Please sign in to comment.