xref: /freebsd/bin/sh/tests/parser/dollar-quote13.0 (revision 62cfcf62f627e5093fb37026a6d8c98e4d2ef04c)
1# $FreeBSD$
2
3# This Unicode escape sequence that has never been in range should either
4# fail to expand or expand to a fallback.
5
6c=$(eval printf %s \$\'\\Uffffff41\' 2>/dev/null)
7r=$(($? != 0))
8[ "$r.$c" = '1.' ] || [ "$r.$c" = '0.?' ] || [ "$r.$c" = $'0.\u2222' ]
9