10.0-ALPHA1: /usr/bin/read: strange return code with -t option

David Boyd David.Boyd49 at twc.com
Tue Oct 22 18:25:18 UTC 2013


When using /usr/bin/read with the -t option the "timeout" return code should
be 1 (verified with 8.4-RELEASE and 9.2-RELEASE).  When used with
10.0-BETA1, the return code is 142.

 

How to recreate:

 

/usr/bin/read -t 1 RESPONSE JUNK (allow this to timeout)

echo $?

142

 

Also with /bin/sh:

 

builtin read -t 1 RESPONSE JUNK (allow this to timeout)

echo $?

142

 

Thanks for your assistance with this issue.

 

David Boyd

 

David.Boyd49 at twc.com

 

 



More information about the freebsd-stable mailing list