ash: [EVAL] Make eval with empty arguments return 0
[oweals/busybox.git] / shell / hush_test / hush-misc / heredoc_backslash1.tests
index b70467df86c73487eecc2c37b6ddd4ab8e443152..501af54903c828b722cec4ddfd8e80ebebeb26b1 100755 (executable)
@@ -7,8 +7,12 @@ echo Quoted heredoc:
 cat <<"EOF1"
 a\
        b
+a\\
+       b
  123456 -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
        -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
+ 123456 `echo  v'-$a-\t-\\-\"-\'-\`-\--\z-\*-\?-'`
+ 123456 $(echo v'-$a-\t-\\-\"-\'-\`-\--\z-\*-\?-')
 c\
 EOF1
 echo
@@ -17,8 +21,12 @@ echo Unquoted heredoc:
 cat <<EOF2
 a\
        b
+a\\
+       b
  123456 -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
        -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
+ 123456 `echo  v'-$a-\t-\\-\"-\x-\`-\--\z-\*-\?-'`
+ 123456 $(echo v'-$a-\t-\\-\"-\x-\`-\--\z-\*-\?-')
 c\
 EOF2
 EOF2
@@ -28,8 +36,12 @@ echo Quoted -heredoc:
 cat <<-"EOF3"
 a\
        b
+a\\
+       b
  123456 -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
        -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
+ 123456 `echo  v'-$a-\t-\\-\"-\'-\`-\--\z-\*-\?-'`
+ 123456 $(echo v'-$a-\t-\\-\"-\'-\`-\--\z-\*-\?-')
 c\
        EOF3
 # In -heredoc case the marker is detected even if it is indented.
@@ -39,8 +51,12 @@ echo Unquoted -heredoc:
 cat <<-EOF4
 a\
        b
+a\\
+       b
  123456 -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
        -$a-\t-\\-\"-\'-\`-\--\z-\*-\?-
+ 123456 `echo  v'-$a-\t-\\-\"-\x-\`-\--\z-\*-\?-'`
+ 123456 $(echo v'-$a-\t-\\-\"-\x-\`-\--\z-\*-\?-')
 c\
 EOF4
        EOF4