|
Description
|
[ahl 12.17.2007]
Despite the best efforts of the test suite, the substr() subroutine is broken for certain negative values for the third argument in terms of mimicking perl's substr() behavior:
# perl -e 'printf("-%s-\n", substr("trash", 0, -1));'
-tras-
# dtrace -n BEGIN'{ printf("-%s-\n", substr("trash", 0, -1)); exit(0); }' -q
--
|