Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2020 16:27:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 249522] wc(1) prints leading spaces before the count, which appears to not be POSIX-compliant
Message-ID:  <bug-249522-227-cGxuS4WGXC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249522-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249522-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249522

--- Comment #1 from Conrad Meyer <cem@freebsd.org> ---
Where is the bug?

$ [ "   4" -gt 10 ]; echo $?
1
$ [ "4" -gt 10 ]; echo $?
1
$ [ 4 -gt 10 ]; echo $?
1
$ [ "$( (echo;echo;echo) | wc -l)" -gt 10 ]; echo $?
1
$ [ "$( (echo;echo;echo) | wc -l)" -gt 1 ]; echo $?
0

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249522-227-cGxuS4WGXC>