summaryrefslogtreecommitdiffstats
path: root/usr.bin/cut
Commit message (Collapse)AuthorAgeFilesLines
* The is_delim function works on wchar_t characters not ints, update theandrew2012-11-241-2/+2
| | | | | | function to take a wchar_t as it's argument. This fixes the build when wchar_t is not an int, i.e. ARM EABI.
* Add 'w' flag to:eadler2012-11-202-10/+35
| | | | | | | | | | | Use whitespace (spaces and tabs) as the delimiter. Consecutive spaces and tabs count as one single field separator. Reviewed by: swildner@dragonflybsd.org Approved by: cperciva Obtained from: DragonFlyBSD MFC after: 1 week
* Fix typokevlo2012-06-111-1/+1
|
* - Consistenly mention columns and fieldskevlo2012-06-112-8/+8
| | | | | | - Add -b to short error messages Obtained from: NetBSD
* Add missing static keywords to cut(1)ed2011-11-061-23/+23
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Fix punctuation.trhodes2009-04-011-1/+1
| | | | | PR: 132834 Submitted by: "Alan R. S. Bueno" <alan.bsd@gmail.com>
* - Adopt the short description from POSIX as it better matches theru2007-02-281-7/+6
| | | | | | | utility name. - Fix a bug in description: the range preceded by a dash selects up to the last number, not first.
* Sort sections.ru2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* When the last line of a file is missing a newline in -f mode, pass atjr2004-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.
* mdoc(7) fixes.ru2004-07-071-1/+1
|
* Describe the algorithm used by the -n option.tjr2004-06-281-0/+3
|
* Move some variable declarations to the top of the file.tjr2004-06-281-4/+3
|
* Silence a warning about an unused argument.tjr2004-06-271-1/+1
|
* Correct the description of the -f option: input and output fields aretjr2004-06-271-2/+6
| | | | | separated by the field delimiter character, which is not necessarily the tab character.
* Handle multibyte characters when cutting out fields (-f and -d options.)tjr2004-06-272-28/+47
|
* Update a comment that compared the parser with an obsolete draft oftjr2004-06-271-4/+2
| | | | | IEEE Std 1003.2-1992. Most of the "extensions" here were actually required by the final version of the standard.
* Add cross-reference to colrm(1).tjr2004-06-271-0/+1
|
* Implement the -c option correctly in locales with multibyte characterstjr2004-06-272-40/+67
| | | | instead of treating it as a synonym for -b.
* Make the handling of invalid multibyte sequences more robust by usingtjr2004-06-271-1/+5
| | | | mbrlen() instead of mblen().
* Duplicate "from".keramida2003-05-031-1/+1
| | | | | PR: docs/51724 Submitted by: Christopher Nehren <apeiron@comcast.net
* mdoc(7) police: markup polishing.ru2002-11-261-3/+3
| | | | Approved by: re
* ANSIify function definitions.dwmalone2002-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
* Remove local prototypes for main().jmallett2002-08-191-1/+0
|
* Revert previous delta for cut(1) and calendar(1) as they were not appliedtrhodes2002-07-231-2/+9
| | | | correctly. My fault, forgot that -current was checked out.
* MFC: Fix some grammar, greater reduce diffs to HEADtrhodes2002-07-221-9/+2
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* cut(1) appeared at least as early as System III.tjr2002-06-111-0/+7
|
* Add an examples section. Avoid beginning a sentence with a lowercase letter.tjr2002-06-081-0/+14
|
* Document cut(1)'s deficiencies in dealing with multibyte characters in thetjr2002-06-081-0/+14
| | | | BUGS section. These will be easy to fix when we have wide character stdio.
* Don't split multibyte characters when the -n option is specified.tjr2002-06-082-4/+97
|
* style(9): don't initialise variables in their declaration, remove spacetjr2002-06-071-12/+11
| | | | | after function name, use __unused on unused parameters instead of initialising them to bogus values.
* Move exit status info into Diagnostics section.tjr2002-05-301-4/+2
|
* mdoc(7) police: use .Fl to represent stdin.ru2002-05-291-1/+1
|
* Initialise the `positions' array correctly before use.tjr2002-05-271-0/+3
|
* When a file name of "-" is given, read from standard input (SUSv3)tjr2002-05-242-8/+17
|
* Allow byte/character positions >_POSIX2_LINE_MAX to be specified bytjr2002-05-241-6/+24
| | | | dynamically growing the `positions' array.
* If processing of one file fails, try to process the remaining files andtjr2002-05-241-4/+8
| | | | | exit non-zero instead of immediately exiting. The traditional BSD behaviour is explicitly forbidden by P1003.2.
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* WARNS=2 and -Wall are not both needed. (The second is a subset of themarkm2001-12-031-1/+0
| | | | first)
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* Silence the remaining warnings and clamp down with WARNS=2.dd2001-06-072-4/+6
| | | | Not objected to by: -audit
* Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).dd2001-04-251-5/+17
| | | | | PR: 26810 Reviewed by: dwmalone
* Remove duplicate FreeBSD Idcharnier2001-02-062-6/+2
| | | | | Remoce unused #include Use imperative mode to start flag description
* De-__P()-ifywill2001-01-281-6/+6
| | | | Reviewed by: markm
* BDECFLAGS: constify; use proper types. Add $FreeBSD$, clean up #ifndef lint.will2001-01-281-10/+13
| | | | Reviewed by: markm
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-6/+6
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
OpenPOWER on IntegriCloud