]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/parser/dollar-quote13.0
shell_cmds-207.100.1.tar.gz
[apple/shell_cmds.git] / sh / tests / parser / dollar-quote13.0
1 # $FreeBSD: head/bin/sh/tests/parser/dollar-quote13.0 286973 2015-08-20 22:05:55Z jilles $
2
3 # This Unicode escape sequence that has never been in range should either
4 # fail to expand or expand to a fallback.
5
6 c=$(eval printf %s \$\'\\Uffffff41\' 2>/dev/null)
7 r=$(($? != 0))
8 [ "$r.$c" = '1.' ] || [ "$r.$c" = '0.?' ] || [ "$r.$c" = $'0.\u2222' ]