Skip to content

Commit

Permalink
Test \u{...} escapes in name of {}-enclosed environment variable …
Browse files Browse the repository at this point in the history
…in shell-expanded string
  • Loading branch information
laniakea64 committed Oct 4, 2024
1 parent c994920 commit 52266f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cases/expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@
<span class="String"> test</span>
<span class="String">"""</span>
u_escape_shell_expanded <span class="Operator">:=</span> <span class="String">x"shell </span><span class="PreProc">${FOO</span><span class="Operator">:-</span><span class="Character">(</span><span class="Special">\u{1f41a}</span><span class="Character">)</span><span class="PreProc">}</span><span class="String"> shell"</span>
u_escape_shell_expanded_name <span class="Operator">:=</span> <span class="String">x"""</span>
<span class="String"> TERM=</span><span class="PreProc">${</span><span class="Special">\u{000054}\u{00045}\u{0052}\u{04d}</span><span class="PreProc">}</span><span class="String">"""</span>
u_escape_in_replace_regex <span class="Operator">:=</span> <span class="Function">replace_regex</span>(<span class="String">'foo'</span>, <span class="String">'^.'</span>, <span class="String">"</span><span class="Special">\u{46}</span><span class="String">"</span>)
not_u_escape <span class="Operator">:=</span> <span class="String">'\u{1F916}'</span>
2 changes: 2 additions & 0 deletions tests/cases/expressions.just
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ u_escape_triple_quoted := """
test
"""
u_escape_shell_expanded := x"shell ${FOO:-(\u{1f41a})} shell"
u_escape_shell_expanded_name := x"""
TERM=${\u{000054}\u{00045}\u{0052}\u{04d}}"""
u_escape_in_replace_regex := replace_regex('foo', '^.', "\u{46}")
not_u_escape := '\u{1F916}'

0 comments on commit 52266f0

Please sign in to comment.