test failure for openssh-SNAP-20051125.tar.gz
Darren Tucker
dtucker at zip.com.au
Sun Nov 27 23:42:11 EST 2005
On Sat, Nov 26, 2005 at 01:03:51AM +0700, John Gatewood Ham wrote:
> head: `-2000' option is obsolete; use `-n 2000'
[...]
Sigh. If anyone is ever talking to the GNU folks responsible for this,
please point out that this breakage is unnecessary. It's even covered
in the POSIX.1 FAQ (Q 15):
http://www.opengroup.org/austin/papers/posix_faq.html
> The attached patch solved this problem for my system.
Thanks. Does this slightly simpler patch also solve it? (no export
and no subshell)
Index: yes-head.sh
===================================================================
RCS file: /var/cvs/openssh/regress/yes-head.sh,v
retrieving revision 1.3
diff -u -p -r1.3 yes-head.sh
--- yes-head.sh 12 Sep 2003 20:21:14 -0000 1.3
+++ yes-head.sh 27 Nov 2005 12:34:13 -0000
@@ -4,7 +4,7 @@
tid="yes pipe head"
for p in 1 2; do
- lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | head -2000"' | (sleep 3 ; wc -l)`
+ lines=`${SSH} -$p -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | _POSIX2_VERSION=199209 head -2000"' | (sleep 3 ; wc -l)`
if [ $? -ne 0 ]; then
fail "yes|head test failed"
lines = 0;
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list