26d6f04885
Although it is probably unwise to use this, POSIX is clear that leading zeroes are permitted in positional parameters (and do not indicate octal). Such positional parameters are checked for being unset and/or null correctly, but their value is incorrectly expanded.
5 lines
105 B
Plaintext
5 lines
105 B
Plaintext
# $FreeBSD$
|
|
|
|
r=$(${SH} -c 'echo ${01:+yes}${010:+yes}' '' a '' '' '' '' '' '' '' '' b)
|
|
[ "$r" = yesyes ]
|