ru
31b96e8df8
Sort sections.
2005-01-18 13:43:56 +00:00
ru
21331566c5
Added the EXIT STATUS section where appropriate.
2005-01-17 07:44:44 +00:00
tjr
0996b6bfc4
When the last line of a file is missing a newline in -f mode, pass a
...
length argument to mbrtowc() that accounts for the terminating newline
character we add automatically. Failing to do this caused the loop to
unexpectedly run out of characters and incorrectly signal an "Illegal byte
sequence" error.
2004-11-05 10:45:23 +00:00
ru
6e28d19886
mdoc(7) fixes.
2004-07-07 19:57:16 +00:00
tjr
cedc67b323
Describe the algorithm used by the -n option.
2004-06-28 06:20:28 +00:00
tjr
c47c24567e
Move some variable declarations to the top of the file.
2004-06-28 06:05:36 +00:00
tjr
775fbabb11
Silence a warning about an unused argument.
2004-06-27 16:58:56 +00:00
tjr
065e7a9c3a
Correct the description of the -f option: input and output fields are
...
separated by the field delimiter character, which is not necessarily
the tab character.
2004-06-27 16:55:25 +00:00
tjr
e2e364aea2
Handle multibyte characters when cutting out fields (-f and -d options.)
2004-06-27 16:42:33 +00:00
tjr
7716cca65c
Update a comment that compared the parser with an obsolete draft of
...
IEEE Std 1003.2-1992. Most of the "extensions" here were actually
required by the final version of the standard.
2004-06-27 15:27:15 +00:00
tjr
b078bd951f
Add cross-reference to colrm(1).
2004-06-27 14:57:42 +00:00
tjr
6d202c45e8
Implement the -c option correctly in locales with multibyte characters
...
instead of treating it as a synonym for -b.
2004-06-27 14:55:07 +00:00
tjr
3ee62ebc6a
Make the handling of invalid multibyte sequences more robust by using
...
mbrlen() instead of mblen().
2004-06-27 10:35:28 +00:00
keramida
beac9df8b1
Duplicate "from".
...
PR: docs/51724
Submitted by: Christopher Nehren <apeiron@comcast.net
2003-05-03 15:55:23 +00:00
ru
ebbe7aaf9b
mdoc(7) police: markup polishing.
...
Approved by: re
2002-11-26 10:51:47 +00:00
dwmalone
e3e153e6ce
ANSIify function definitions.
...
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
2002-09-04 23:29:10 +00:00
jmallett
51dc8825ab
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
trhodes
2ebdf8bd41
Revert previous delta for cut(1) and calendar(1) as they were not applied
...
correctly. My fault, forgot that -current was checked out.
2002-07-23 15:09:56 +00:00
trhodes
8923708aef
MFC: Fix some grammar, greater reduce diffs to HEAD
2002-07-22 21:14:16 +00:00
obrien
ff8b9161f3
Consistently use FBSDID
2002-06-30 05:34:21 +00:00
tjr
936df20aec
cut(1) appeared at least as early as System III.
2002-06-11 08:11:12 +00:00
tjr
f523afdedf
Add an examples section. Avoid beginning a sentence with a lowercase letter.
2002-06-08 08:37:27 +00:00
tjr
ed5cc3bab4
Document cut(1)'s deficiencies in dealing with multibyte characters in the
...
BUGS section. These will be easy to fix when we have wide character stdio.
2002-06-08 08:08:47 +00:00
tjr
94cd5f34f4
Don't split multibyte characters when the -n option is specified.
2002-06-08 07:27:21 +00:00
tjr
7360ab9c36
style(9): don't initialise variables in their declaration, remove space
...
after function name, use __unused on unused parameters instead of
initialising them to bogus values.
2002-06-07 09:13:43 +00:00
tjr
ef94805b98
Move exit status info into Diagnostics section.
2002-05-30 00:46:00 +00:00
ru
0d1867bc41
mdoc(7) police: use .Fl to represent stdin.
2002-05-29 18:21:42 +00:00
tjr
c3ffc0635a
Initialise the `positions' array correctly before use.
2002-05-27 02:01:25 +00:00
tjr
30643e2c87
When a file name of "-" is given, read from standard input (SUSv3)
2002-05-24 09:56:18 +00:00
tjr
5eed1497cd
Allow byte/character positions >_POSIX2_LINE_MAX to be specified by
...
dynamically growing the `positions' array.
2002-05-24 09:11:18 +00:00
tjr
bef2788455
If processing of one file fails, try to process the remaining files and
...
exit non-zero instead of immediately exiting. The traditional BSD
behaviour is explicitly forbidden by P1003.2.
2002-05-24 06:03:12 +00:00
markm
72f8b8d824
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
markm
10fcd00fe4
WARNS=2 and -Wall are not both needed. (The second is a subset of the
...
first)
2001-12-03 00:16:52 +00:00
dd
7d1013753f
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
dd
cdccc49add
Silence the remaining warnings and clamp down with WARNS=2.
...
Not objected to by: -audit
2001-06-07 02:57:58 +00:00
dd
828e375813
Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).
...
PR: 26810
Reviewed by: dwmalone
2001-04-25 05:42:53 +00:00
charnier
54625370c6
Remove duplicate FreeBSD Id
...
Remoce unused #include
Use imperative mode to start flag description
2001-02-06 20:03:48 +00:00
will
a1863dee19
De-__P()-ify
...
Reviewed by: markm
2001-01-28 00:35:40 +00:00
will
f2eedb1ad9
BDECFLAGS: constify; use proper types. Add $FreeBSD$, clean up #ifndef lint.
...
Reviewed by: markm
2001-01-28 00:34:29 +00:00
ru
0957874304
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
sheldonh
d39e57413d
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
peter
e4b04a2b21
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
nik
7e91e73b9f
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:24:20 +00:00
eivind
554eccb620
Back out the NetBSD .Nm changes - we don't have the required
...
infrastructure, and I don't seem to find time to merge it.
1999-02-12 13:24:45 +00:00
eivind
46bcd927f7
Merge from NetBSD: cut.1 rev 1.6 to 1.8
...
cut.c rev 1.9 to 1.13
* Man page internal cleanups
* 8-bit characters cast to unsigned for is*()
* Misc cleanups for egcs -Wall compatibility
1999-02-02 15:48:04 +00:00
eivind
2d04124cf9
Bring in use of strsep() to handle bad input better, and clean up
...
some text.
Obtained from: Merge from OpenBSD
(cut.1 up to OpenBSD rev 1.3, cut.c up to OpenBSD rev 1.6)
1999-02-02 14:56:55 +00:00
eivind
9052fec707
Merge from NetBSD cut.1 rev 1.6 and cut.c rev 1.9, respectively. This
...
makes us conform to IEEE Std1003.2-1992 (``POSIX.2'').
Obtained from: NetBSD (but with slight modifications).
1999-02-02 14:26:39 +00:00
archie
b24c3efc8e
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
charnier
73bb150bd4
Use err(3) instead of local redefinition. Change argument name in man
...
page to sync with usage string.
1997-06-30 06:48:46 +00:00
imp
cd84ece5fd
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00