wc.1 (107276) | wc.1 (131507) |
---|---|
1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)wc.1 8.2 (Berkeley) 4/19/94 | 1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)wc.1 8.2 (Berkeley) 4/19/94 |
36.\" $FreeBSD: head/usr.bin/wc/wc.1 107276 2002-11-26 17:33:37Z ru $ | 36.\" $FreeBSD: head/usr.bin/wc/wc.1 131507 2004-07-03 00:24:45Z ru $ |
37.\" 38.Dd June 13, 2002 39.Dt WC 1 40.Os 41.Sh NAME 42.Nm wc 43.Nd word, line, character, and byte count 44.Sh SYNOPSIS --- 70 unchanged lines hidden (view full) --- 115.Sh SEE ALSO 116.Xr iswspace 3 117.Sh COMPATIBILITY 118Historically, the 119.Nm 120utility was documented to define a word as a ``maximal string of 121characters delimited by <space>, <tab> or <newline> characters''. 122The implementation, however, didn't handle non-printing characters | 37.\" 38.Dd June 13, 2002 39.Dt WC 1 40.Os 41.Sh NAME 42.Nm wc 43.Nd word, line, character, and byte count 44.Sh SYNOPSIS --- 70 unchanged lines hidden (view full) --- 115.Sh SEE ALSO 116.Xr iswspace 3 117.Sh COMPATIBILITY 118Historically, the 119.Nm 120utility was documented to define a word as a ``maximal string of 121characters delimited by <space>, <tab> or <newline> characters''. 122The implementation, however, didn't handle non-printing characters |
123correctly so that `` ^D^E '' counted as 6 spaces, while ``foo^D^Ebar'' | 123correctly so that 124.Dq " ^D^E " 125counted as 6 spaces, while ``foo^D^Ebar'' |
124counted as 8 characters. 125.Bx 4 126systems after 127.Bx 4.3 128modified the implementation to be consistent 129with the documentation. 130This implementation defines a ``word'' in terms of the 131.Xr iswspace 3 --- 12 unchanged lines hidden --- | 126counted as 8 characters. 127.Bx 4 128systems after 129.Bx 4.3 130modified the implementation to be consistent 131with the documentation. 132This implementation defines a ``word'' in terms of the 133.Xr iswspace 3 --- 12 unchanged lines hidden --- |