Skip to content

Commit 923c3f4

Browse files
committed
upstream: Shell syntax fix. From ren mingshuai vi github PR#369.
OpenBSD-Regress-ID: 6696b2eeefe128099fc3d7ea9f23252cc35156f9
1 parent 4d87a00 commit 923c3f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/yes-head.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# $OpenBSD: yes-head.sh,v 1.6 2017/04/30 23:34:55 djm Exp $
1+
# $OpenBSD: yes-head.sh,v 1.7 2023/01/14 10:05:54 dtucker Exp $
22
# Placed in the Public Domain.
33

44
tid="yes pipe head"
55

66
lines=`${SSH} -F $OBJ/ssh_proxy thishost 'sh -c "while true;do echo yes;done | _POSIX2_VERSION=199209 head -2000"' | (sleep 3 ; wc -l)`
77
if [ $? -ne 0 ]; then
88
fail "yes|head test failed"
9-
lines = 0;
9+
+ lines=0
1010
fi
1111
if [ $lines -ne 2000 ]; then
1212
fail "yes|head returns $lines lines instead of 2000"

0 commit comments

Comments
 (0)