Results for ysh-string.test.sh

statusysh
pass 23
FAIL 2
total25
caseyshdescription
0pass Unquoted backslash escapes, as in J8 strings
1pass Unquoted \u{3bc} escape
2pass Unquoted \y24 escape
3pass single quoted -- implicit and explicit raw
4pass Implicit raw string '\t\n' is a syntax error because backslash is ambiguous
5pass Multiline ''' \t ''' is a also syntax error because backslash is ambiguous
6pass $"foo $x" to make "foo $x" explicit
7pass raw strings and J8 strings don't work in OSH
8pass J8-style u'' and b'' strings in expression mode
9pass J8-style u'' and b'' strings in command mode
10pass J8-style multi-line strings u''' b''' in command mode
11pass Double Quoted
12pass Multiline strings with '' and ""
13pass shopt parse_ysh_string
14pass Special rule for <<< ''' and <<< """ - no extra newline
15pass $''' isn't a a multiline string (removed)
16FAIL """ and $""" in Expression Mode
details
17pass ''' in Expression Mode
18FAIL """ and $""" in Command Mode
details
19pass ''' in Command Mode
20pass r''' in Command Mode, Expression mode
21pass ''' in Here Doc
22pass ''' without parse_triple_quote
23pass here doc with quotes
24pass triple quoted and implicit concatenation
23 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh16 """ and $""" in Expression Mode

[ysh stdout] Expected 'line1=line1\nline2=line2\n[one "\ntwo = 2 ""\n three = 3\n]\n[good\n bad 42\n]\n[good\n bad 42\n]\n' Got 'line1=line1\nline2=line2\n'
[ysh status] Expected 0 Got 2

stdout:
line1=line1
line2=line2
stderr:
     three = $three
           ^
[ stdin ]:12: Unexpected = (Hint: use var/setvar, or quote it)
ysh18 """ and $""" in Command Mode

[ysh stdout] Expected '--\none "\ntwo = 2 ""\nthree = 3\n\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\nthree = 3\ntwo = 2 ""\none "\n' Got '--\n one "\n two = 2\n'
[ysh status] Expected 0 Got 2

stdout:
--
  one "
  two = 2
stderr:
    three = $three
          ^
[ stdin ]:8: Unexpected = (Hint: use var/setvar, or quote it)