summaryrefslogtreecommitdiff
path: root/usr.bin/cut
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-121-6/+3
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge from head@274682Simon J. Gerraty2014-11-192-0/+27
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=274683
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-082-10/+35
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ Sync from headSimon J. Gerraty2012-11-042-8/+8
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Integrate usr.bin/cut/tests from NetBSD into atf/kyuaEnji Cooper2014-10-092-0/+27
| |_|/ |/| | | | | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=272783
* | | The is_delim function works on wchar_t characters not ints, update theAndrew Turner2012-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. Notes: svn path=/head/; revision=243474
* | | Add 'w' flag to:Eitan Adler2012-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 Notes: svn path=/head/; revision=243320
* | Fix typoKevin Lo2012-06-111-1/+1
| | | | | | | | Notes: svn path=/head/; revision=236867
* | - Consistenly mention columns and fieldsKevin Lo2012-06-112-8/+8
|/ | | | | | | | | - Add -b to short error messages Obtained from: NetBSD Notes: svn path=/head/; revision=236866
* Add missing static keywords to cut(1)Ed Schouten2011-11-061-23/+23
| | | | Notes: svn path=/head/; revision=227162
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* Fix punctuation.Tom Rhodes2009-04-011-1/+1
| | | | | | | | PR: 132834 Submitted by: "Alan R. S. Bueno" <alan.bsd@gmail.com> Notes: svn path=/head/; revision=190610
* - Adopt the short description from POSIX as it better matches theRuslan Ermilov2007-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. Notes: svn path=/head/; revision=167101
* 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