Permalink
Browse files

Add a gold test case for $'', derived from a problem found in the lexer.

  • Loading branch information...
Andy Chu
Andy Chu committed Nov 27, 2017
1 parent 00b36fa commit 37b0fc5459342c32fe6a8812e0032369dfc96910
Showing with 8 additions and 0 deletions.
  1. +6 −0 gold/dollar-sq.sh
  2. +2 −0 test/gold.sh
View
@@ -0,0 +1,6 @@
#!/bin/bash
echo $'foo\tbar\n'
echo $'foo\tbar\n\
baz'
View
@@ -106,6 +106,8 @@ complex-here-docs() {
comments() { _compare gold/comments.sh; }
export() { _compare gold/export.sh; }
# Not implemented in osh.
dollar-sq() { _compare gold/dollar-sq.sh; }
# Needs declare -p
declare() { _compare gold/declare.sh demo; }

0 comments on commit 37b0fc5

Please sign in to comment.