[Bug 249522] wc(1) prints leading spaces before the count, which appears to not be POSIX-compliant

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 22 16:27:05 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249522

--- Comment #1 from Conrad Meyer <cem at 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

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


More information about the freebsd-bugs mailing list