aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cut
Commit message (Collapse)AuthorAgeFilesLines
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140420
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* When the last line of a file is missing a newline in -f mode, pass aTim J. Robbins2004-11-051-3/+5
| | | | | | | | | | 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. Notes: svn path=/head/; revision=137250
* mdoc(7) fixes.Ruslan Ermilov2004-07-071-1/+1
| | | | Notes: svn path=/head/; revision=131754
* Describe the algorithm used by the -n option.Tim J. Robbins2004-06-281-0/+3
| | | | Notes: svn path=/head/; revision=131227
* Move some variable declarations to the top of the file.Tim J. Robbins2004-06-281-4/+3
| | | | Notes: svn path=/head/; revision=131226
* Silence a warning about an unused argument.Tim J. Robbins2004-06-271-1/+1
| | | | Notes: svn path=/head/; revision=131201
* Correct the description of the -f option: input and output fields areTim J. Robbins2004-06-271-2/+6
| | | | | | | | separated by the field delimiter character, which is not necessarily the tab character. Notes: svn path=/head/; revision=131200
* Handle multibyte characters when cutting out fields (-f and -d options.)Tim J. Robbins2004-06-272-28/+47
| | | | Notes: svn path=/head/; revision=131197
* Update a comment that compared the parser with an obsolete draft ofTim J. Robbins2004-06-271-4/+2
| | | | | | | | IEEE Std 1003.2-1992. Most of the "extensions" here were actually required by the final version of the standard. Notes: svn path=/head/; revision=131196
* Add cross-reference to colrm(1).Tim J. Robbins2004-06-271-0/+1
| | | | Notes: svn path=/head/; revision=131195
* Implement the -c option correctly in locales with multibyte charactersTim J. Robbins2004-06-272-40/+67
| | | | | | | instead of treating it as a synonym for -b. Notes: svn path=/head/; revision=131194
* Make the handling of invalid multibyte sequences more robust by usingTim J. Robbins2004-06-271-1/+5
| | | | | | | mbrlen() instead of mblen(). Notes: svn path=/head/; revision=131183
* Duplicate "from".Giorgos Keramidas2003-05-031-1/+1
| | | | | | | | PR: docs/51724 Submitted by: Christopher Nehren <apeiron@comcast.net Notes: svn path=/head/; revision=114581
* mdoc(7) police: markup polishing.Ruslan Ermilov2002-11-261-3/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107259
* ANSIify function definitions.David Malone2002-09-041-15/+6
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=102944
* Remove local prototypes for main().Juli Mallett2002-08-191-1/+0
| | | | Notes: svn path=/head/; revision=102084
* Revert previous delta for cut(1) and calendar(1) as they were not appliedTom Rhodes2002-07-231-2/+9
| | | | | | | correctly. My fault, forgot that -current was checked out. Notes: svn path=/head/; revision=100579
* MFC: Fix some grammar, greater reduce diffs to HEADTom Rhodes2002-07-221-9/+2
| | | | Notes: svn path=/head/; revision=100529
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99115
* cut(1) appeared at least as early as System III.Tim J. Robbins2002-06-111-0/+7
| | | | Notes: svn path=/head/; revision=98111
* Add an examples section. Avoid beginning a sentence with a lowercase letter.Tim J. Robbins2002-06-081-0/+14
| | | | Notes: svn path=/head/; revision=98044
* Document cut(1)'s deficiencies in dealing with multibyte characters in theTim J. Robbins2002-06-081-0/+14
| | | | | | | BUGS section. These will be easy to fix when we have wide character stdio. Notes: svn path=/head/; revision=98042
* Don't split multibyte characters when the -n option is specified.Tim J. Robbins2002-06-082-4/+97
| | | | Notes: svn path=/head/; revision=98035
* style(9): don't initialise variables in their declaration, remove spaceTim J. Robbins2002-06-071-12/+11
| | | | | | | | after function name, use __unused on unused parameters instead of initialising them to bogus values. Notes: svn path=/head/; revision=98012
* Move exit status info into Diagnostics section.Tim J. Robbins2002-05-301-4/+2
| | | | Notes: svn path=/head/; revision=97530
* mdoc(7) police: use .Fl to represent stdin.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97495
* Initialise the `positions' array correctly before use.Tim J. Robbins2002-05-271-0/+3
| | | | Notes: svn path=/head/; revision=97328
* When a file name of "-" is given, read from standard input (SUSv3)Tim J. Robbins2002-05-242-8/+17
| | | | Notes: svn path=/head/; revision=97237
* Allow byte/character positions >_POSIX2_LINE_MAX to be specified byTim J. Robbins2002-05-241-6/+24
| | | | | | | dynamically growing the `positions' array. Notes: svn path=/head/; revision=97234
* If processing of one file fails, try to process the remaining files andTim J. Robbins2002-05-241-4/+8
| | | | | | | | exit non-zero instead of immediately exiting. The traditional BSD behaviour is explicitly forbidden by P1003.2. Notes: svn path=/head/; revision=97218
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* WARNS=2 and -Wall are not both needed. (The second is a subset of theMark Murray2001-12-031-1/+0
| | | | | | | first) Notes: svn path=/head/; revision=87250
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* Silence the remaining warnings and clamp down with WARNS=2.Dima Dorfman2001-06-072-4/+6
| | | | | | | Not objected to by: -audit Notes: svn path=/head/; revision=77852
* Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).Dima Dorfman2001-04-251-5/+17
| | | | | | | | PR: 26810 Reviewed by: dwmalone Notes: svn path=/head/; revision=75930
* Remove duplicate FreeBSD IdPhilippe Charnier2001-02-062-6/+2
| | | | | | | | Remoce unused #include Use imperative mode to start flag description Notes: svn path=/head/; revision=72108
* De-__P()-ifyWill Andrews2001-01-281-6/+6
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=71726
* BDECFLAGS: constify; use proper types. Add $FreeBSD$, clean up #ifndef lint.Will Andrews2001-01-281-10/+13
| | | | | | | Reviewed by: markm Notes: svn path=/head/; revision=71725
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-6/+6
| | | | Notes: svn path=/head/; revision=68963
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=48792
* Back out the NetBSD .Nm changes - we don't have the requiredEivind Eklund1999-02-121-6/+6
| | | | | | | infrastructure, and I don't seem to find time to merge it. Notes: svn path=/head/; revision=43927
* Merge from NetBSD: cut.1 rev 1.6 to 1.8Eivind Eklund1999-02-022-21/+28
| | | | | | | | | | 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 Notes: svn path=/head/; revision=43533
* Bring in use of strsep() to handle bad input better, and clean upEivind Eklund1999-02-022-7/+8
| | | | | | | | | | some text. Obtained from: Merge from OpenBSD (cut.1 up to OpenBSD rev 1.3, cut.c up to OpenBSD rev 1.6) Notes: svn path=/head/; revision=43532
* Merge from NetBSD cut.1 rev 1.6 and cut.c rev 1.9, respectively. ThisEivind Eklund1999-02-022-7/+26
| | | | | | | | | makes us conform to IEEE Std1003.2-1992 (``POSIX.2''). Obtained from: NetBSD (but with slight modifications). Notes: svn path=/head/; revision=43531
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-062-5/+6
| | | | Notes: svn path=/head/; revision=41568
* Use err(3) instead of local redefinition. Change argument name in manPhilippe Charnier1997-06-302-42/+14
| | | | | | | page to sync with usage string. Notes: svn path=/head/; revision=27098
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360