Siteshwar Vashisht
2017-03-31 11:12:21 UTC
Hello,
Patch posted at [1] introduced a regression in ksh with null characters.
Steps to reproduce:
for i in `perl -e 'printf "a%c\nb\n",chr(0)'`; do echo $i; done
Output:
a
Expected Output:
a
b
I am attaching a patch that works around this issue.
[1] http://ast-users.research.att.narkive.com/rj3UxycP/patch-problem-with-alarm-and-ifs
Patch posted at [1] introduced a regression in ksh with null characters.
Steps to reproduce:
for i in `perl -e 'printf "a%c\nb\n",chr(0)'`; do echo $i; done
Output:
a
Expected Output:
a
b
I am attaching a patch that works around this issue.
[1] http://ast-users.research.att.narkive.com/rj3UxycP/patch-problem-with-alarm-and-ifs
--
--
Siteshwar Vashisht
--
Siteshwar Vashisht