aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/split
Commit message (Collapse)AuthorAgeFilesLines
* split(1): Add EXAMPLES sectionFernando ApesteguĂ­a2020-06-181-0/+36
| | | | | | | | | | | Add EXAMPLES covering -d, -n and -p Include small explanation about the size of the chunks for the -n option Approved by: 0mp Differential Revision: https://reviews.freebsd.org/D25198 Notes: svn path=/head/; revision=362328
* Revert r352953: Convert pnmatch to single element array in regexec callsAlexander Kabaev2019-10-021-4/+4
| | | | | | | Requested by: cem Notes: svn path=/head/; revision=353011
* Convert pnmatch to single element array in regexec callsAlexander Kabaev2019-10-021-4/+4
| | | | | | | | | | | | | | The regexec function is declared as taking an array of regmatch_t elements, and passing in the pointer to singleton element, while correct, triggers a Coverity warning. Convert the singleton into an array of one to silence the warning. Reported by: Coverity Coverity CID: 1009732, 1009733 MFC after: 2 weeks Notes: svn path=/head/; revision=352953
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 sync of headSimon J. Gerraty2015-05-271-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * 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
| * New/updated dependenciesSimon J. Gerraty2014-05-051-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265381
| * Merge headSimon J. Gerraty2014-04-282-16/+6
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ Merge from headSimon J. Gerraty2013-09-052-6/+32
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | 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 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
* | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | Add missed DPADDEitan Adler2013-11-091-0/+1
| | | | | | | | | | | | | | | | | | | | | Reported by: swildner@DragonflyBSD.org Notes: svn path=/head/; revision=257885
* | | Change manual string conversion to expand_numberEitan Adler2013-11-092-16/+5
| |/ |/| | | | | | | | | | | Reviewed by: adrian Notes: svn path=/head/; revision=257884
* | Avoid signed overflow in error handling code.Eitan Adler2013-05-211-1/+3
| | | | | | | | | | | | | | Reviewed by: cperciva, bjk Notes: svn path=/head/; revision=250882
* | Bump .Dd for recent content change.Eitan Adler2013-05-101-1/+1
| | | | | | | | | | | | | | Reported by: delphij Notes: svn path=/head/; revision=250451
* | Implement 'split -d' which allows a numeric suffix instead of anEitan Adler2013-05-102-5/+29
|/ | | | | | | | | | | | alphabetic one. PR: bin/116209 Submitted by: Marcin Gryszkalis <mg@fork.pl> (adapted from) Reviewed by: will MFC after: 1 week Notes: svn path=/head/; revision=250432
* Fix warning when compiling with gcc46:Eitan Adler2012-01-101-3/+0
| | | | | | | | | | error: variable 'defname' set but not use Approved by: dim MFC after: 3 day Notes: svn path=/head/; revision=229905
* Add missing static keywords to split(1)Ed Schouten2011-11-061-10/+10
| | | | Notes: svn path=/head/; revision=227183
* 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
* Correct spelling mistake, int -> intoGavin Atkinson2010-09-021-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=212162
* When "-b" is specified, one could easily create "smaller" filesTom Rhodes2009-01-241-3/+3
| | | | | | | | | | | | that are much larger than expected (given the default size). Change "smaller files" to "split files" which is more in line with what "-b" actually does. PR: 119329 Submitted by: Julian Stacey <jhs@berklix.org> Notes: svn path=/head/; revision=187663
* Add a -n option to split(1) to split files into N chunks rather thanDavid Schultz2008-03-162-12/+78
| | | | | | | | | | | having to specify the right number of bytes. Obtained from: NetBSD Submitted by: Jan Schaumann <jschauma@netmeister.org> PR: 113175 Notes: svn path=/head/; revision=177256
* Markup fixes.Ruslan Ermilov2006-09-291-3/+9
| | | | Notes: svn path=/head/; revision=162792
* Add support for splitting at gigabyte boundaries. [1]Giorgos Keramidas2006-08-102-8/+20
| | | | | | | | | | | | | | | | | Also make both lowercase and uppercase suffix letters work as byte-count suffixes, i.e. the following two commands are equivalent now: % split -b 4m foo % split -b 4M foo Submitted by: Roman Divacky [1] Lots of help by: cperciva Reviewed by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=161172
* Update usage & SYNOPSIS and clarify that input files are not removed.Giorgos Keramidas2006-08-082-18/+30
| | | | | | | | | | | | | | Sort getopt option handling of -p too, while here. The changes are adapted from a patch by Ruslan Ermilov, posted as followup to docs/33852. PR: docs/33852 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 1 week Notes: svn path=/head/; revision=161106
* -mdoc sweep.Ruslan Ermilov2005-11-181-4/+4
| | | | Notes: svn path=/head/; revision=152568
* Include option-argument names in the list in the DESCRIPTION section.Tim J. Robbins2005-08-301-12/+4
| | | | | | | Remove a non-bug from the BUGS section. Notes: svn path=/head/; revision=149618
* Remove undocumented historic support for treating "-" as an optionTim J. Robbins2005-08-301-14/+8
| | | | | | | instead of a file operand; this is not compatible with POSIX. Notes: svn path=/head/; revision=149616
* Remove the hack that varied the first character of the output file nameTim J. Robbins2005-08-212-15/+5
| | | | | | | | | | | if none was specified on the command line. This is not permitted by POSIX, and no longer needed now that we have the -a option. PR: 85099 Submitted by: Toby Peterson (Apple Computer) Notes: svn path=/head/; revision=149345
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Fix document year.Tim J. Robbins2004-07-111-1/+1
| | | | | | | Noticed by: simon Notes: svn path=/head/; revision=131980
* Add fairly standard ENVIRONMENT and DIAGNOSTICS sections.Tim J. Robbins2004-07-111-1/+12
| | | | Notes: svn path=/head/; revision=131979
* Respect locale settings from the environment.Tim J. Robbins2004-07-111-0/+3
| | | | Notes: svn path=/head/; revision=131978
* Support larger files (at least 64-bit offsets) by using off_t instead ofTim J. Robbins2002-07-151-8/+21
| | | | | | | int to store offsets. Notes: svn path=/head/; revision=100024
* Remove <sys/types> where we use <sys/param> already.Juli Mallett2002-06-151-8/+5
| | | | | | | protoize. Notes: svn path=/head/; revision=98253
* Sort sections.Tim J. Robbins2002-06-031-12/+12
| | | | Notes: svn path=/head/; revision=97766
* Correct HISTORY section - split(1) appeared at least as early as V3.Tim J. Robbins2002-06-031-1/+1
| | | | Notes: svn path=/head/; revision=97765
* mdoc(7) police: use .Fl to denote stdin.Ruslan Ermilov2002-05-301-1/+1
| | | | Notes: svn path=/head/; revision=97545
* Claim conformance to IEEE Std 1003.1-2001.Tim J. Robbins2002-05-271-0/+6
| | | | | | | See also csplit(1). Notes: svn path=/head/; revision=97336
* Allow "-" to be specified as an operand as well as an option.Tim J. Robbins2002-05-272-2/+10
| | | | | | | SUSV3 requires something like "split -- -" to work. Document the "-" operand. Notes: svn path=/head/; revision=97334
* Avoid overflowing `fname' if the file name prefix given on the commandTim J. Robbins2002-05-271-1/+2
| | | | | | | | | line is too long. Obtained from: OpenBSD Notes: svn path=/head/; revision=97332
* remove __PWarner Losh2002-03-221-4/+4
| | | | Notes: svn path=/head/; revision=92922
* Add -a option (SUSv3) to split(1).Mike Barcroft2002-02-012-11/+49
| | | | | | | | Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au> MFC after: 1 month Notes: svn path=/head/; revision=90048