Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The is_delim function works on wchar_t characters not ints, update the | andrew | 2012-11-24 | 1 | -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: | eadler | 2012-11-20 | 1 | -8/+30 |
| | | | | | | | | | | | 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 | ||||
* | - Consistenly mention columns and fields | kevlo | 2012-06-11 | 1 | -3/+3 |
| | | | | | | - Add -b to short error messages Obtained from: NetBSD | ||||
* | Add missing static keywords to cut(1) | ed | 2011-11-06 | 1 | -23/+23 |
| | |||||
* | Remove the advertising clause from UCB copyrighted files in usr.bin. This | joel | 2010-12-11 | 1 | -4/+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 | ||||
* | When the last line of a file is missing a newline in -f mode, pass a | tjr | 2004-11-05 | 1 | -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. | ||||
* | Move some variable declarations to the top of the file. | tjr | 2004-06-28 | 1 | -4/+3 |
| | |||||
* | Silence a warning about an unused argument. | tjr | 2004-06-27 | 1 | -1/+1 |
| | |||||
* | Handle multibyte characters when cutting out fields (-f and -d options.) | tjr | 2004-06-27 | 1 | -19/+46 |
| | |||||
* | Update a comment that compared the parser with an obsolete draft of | tjr | 2004-06-27 | 1 | -4/+2 |
| | | | | | IEEE Std 1003.2-1992. Most of the "extensions" here were actually required by the final version of the standard. | ||||
* | Implement the -c option correctly in locales with multibyte characters | tjr | 2004-06-27 | 1 | -28/+64 |
| | | | | instead of treating it as a synonym for -b. | ||||
* | Make the handling of invalid multibyte sequences more robust by using | tjr | 2004-06-27 | 1 | -1/+5 |
| | | | | mbrlen() instead of mblen(). | ||||
* | ANSIify function definitions. | dwmalone | 2002-09-04 | 1 | -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(). | jmallett | 2002-08-19 | 1 | -1/+0 |
| | |||||
* | Consistently use FBSDID | obrien | 2002-06-30 | 1 | -2/+2 |
| | |||||
* | Don't split multibyte characters when the -n option is specified. | tjr | 2002-06-08 | 1 | -4/+84 |
| | |||||
* | style(9): don't initialise variables in their declaration, remove space | tjr | 2002-06-07 | 1 | -12/+11 |
| | | | | | after function name, use __unused on unused parameters instead of initialising them to bogus values. | ||||
* | Initialise the `positions' array correctly before use. | tjr | 2002-05-27 | 1 | -0/+3 |
| | |||||
* | When a file name of "-" is given, read from standard input (SUSv3) | tjr | 2002-05-24 | 1 | -6/+10 |
| | |||||
* | Allow byte/character positions >_POSIX2_LINE_MAX to be specified by | tjr | 2002-05-24 | 1 | -6/+24 |
| | | | | dynamically growing the `positions' array. | ||||
* | If processing of one file fails, try to process the remaining files and | tjr | 2002-05-24 | 1 | -4/+8 |
| | | | | | exit non-zero instead of immediately exiting. The traditional BSD behaviour is explicitly forbidden by P1003.2. | ||||
* | Silence the remaining warnings and clamp down with WARNS=2. | dd | 2001-06-07 | 1 | -3/+3 |
| | | | | Not objected to by: -audit | ||||
* | Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3). | dd | 2001-04-25 | 1 | -5/+17 |
| | | | | | PR: 26810 Reviewed by: dwmalone | ||||
* | Remove duplicate FreeBSD Id | charnier | 2001-02-06 | 1 | -4/+0 |
| | | | | | Remoce unused #include Use imperative mode to start flag description | ||||
* | De-__P()-ify | will | 2001-01-28 | 1 | -6/+6 |
| | | | | Reviewed by: markm | ||||
* | BDECFLAGS: constify; use proper types. Add $FreeBSD$, clean up #ifndef lint. | will | 2001-01-28 | 1 | -10/+13 |
| | | | | Reviewed by: markm | ||||
* | Merge from NetBSD: cut.1 rev 1.6 to 1.8 | eivind | 1999-02-02 | 1 | -14/+21 |
| | | | | | | | 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 | ||||
* | Bring in use of strsep() to handle bad input better, and clean up | eivind | 1999-02-02 | 1 | -3/+3 |
| | | | | | | | some text. Obtained from: Merge from OpenBSD (cut.1 up to OpenBSD rev 1.3, cut.c up to OpenBSD rev 1.6) | ||||
* | Merge from NetBSD cut.1 rev 1.6 and cut.c rev 1.9, respectively. This | eivind | 1999-02-02 | 1 | -3/+12 |
| | | | | | | makes us conform to IEEE Std1003.2-1992 (``POSIX.2''). Obtained from: NetBSD (but with slight modifications). | ||||
* | Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). | archie | 1998-12-06 | 1 | -5/+5 |
| | |||||
* | Use err(3) instead of local redefinition. Change argument name in man | charnier | 1997-06-30 | 1 | -39/+11 |
| | | | | page to sync with usage string. | ||||
* | compare return value from getopt against -1 rather than EOF, per the final | imp | 1997-03-29 | 1 | -1/+1 |
| | | | | posix standard on the topic. | ||||
* | Merge from Lite2 | peter | 1997-03-11 | 1 | -1/+2 |
| | |||||
* | Fix wrong separator output | ache | 1995-03-21 | 1 | -1/+2 |
| | | | | | Submitted by: julian Obtained from: newsgroup? | ||||
* | BSD 4.4 Lite Usr.bin Sources | rgrimes | 1994-05-27 | 1 | -0/+296 |