It is likely that $'\uXXXX' and $'\UXXXXXXXX' will allow fewer digits in future. However, no digits at all should still be disallowed.
8 lines
161 B
Plaintext
8 lines
161 B
Plaintext
# $FreeBSD$
|
|
|
|
# \u without any digits at all remains invalid.
|
|
# Our choice is a parse error.
|
|
|
|
v=$( (eval ": \$'\u'") 2>&1 >/dev/null)
|
|
[ $? -ne 0 ] && [ -n "$v" ]
|