aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fold
Commit message (Collapse)AuthorAgeFilesLines
* fold(1): Add EXAMPLES sectionFernando Apesteguía2020-10-291-1/+17
| | | | | | | | | | A couple of examples covering -s and -w flags. Approved by: manpages (bcr@) Differential Revision: https://reviews.freebsd.org/D26948 Notes: svn path=/head/; revision=367143
* Add basic tests for ctfconvert(1), fold(1) and rs(1)Alan Somers2017-11-273-0/+91
| | | | | | | | | | | | | | | | | Add basic command line parsing test coverage for these utilities. The tests were automatically generated based on their man pages. These tests can be expanded by hand for more thorough coverage. The aim is to generate very basic amount of test coverage for all the utilities in the base system. Tests generated via: https://github.com/shivansh/smoketestsuite/ Submitted by: shivansh Reviewed by: asomers MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D12424 Notes: svn path=/head/; revision=326289
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-05-091-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318000
* 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
* fold(1): Revert incorrect r308432Conrad Meyer2016-11-151-4/+0
| | | | | | | | | | | As Jean-Sébastien notes, fold(1) requires handling argv-supplied files. That will require a slightly more sophisticated approach. Reported by: dumbbell@ Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308657
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-11-131-0/+1
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308606
* Capsicumize some trivial stdio programsConrad Meyer2016-11-081-0/+4
| | | | | | | | | | | | Trivially capsicumize some simple programs that just interact with stdio. This list of programs uses 'pledge("stdio")' in OpenBSD. No objection from: allanjude, emaste, oshogbo Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D8307 Notes: svn path=/head/; revision=308432
* 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
| * 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 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
* | Complete documenting the HISTORYBaptiste Daroussin2015-06-061-1/+28
|/ | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284058
* Add missing static keywords to fold(1)Ed Schouten2011-11-061-2/+2
| | | | Notes: svn path=/head/; revision=227165
* 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 a segmentation fault in argument processing.Jean-Sébastien Pédron2010-11-061-9/+25
| | | | | | | | | | | | | The crash was caused by a command line such as this one: # foldl -b1 PR: bin/151592 Reported by: Marcus Reid <marcus@blazingdot.com> Tested by: Marcus Reid <marcus@blazingdot.com> MFC after: 3 days Notes: svn path=/head/; revision=214893
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Mention what underlining is meant here.Ruslan Ermilov2006-12-151-3/+7
| | | | Notes: svn path=/head/; revision=165240
* Add cross-reference to fmt(1) and a fairly standard ENVIRONMENT section.Tim J. Robbins2004-08-021-2/+12
| | | | Notes: svn path=/head/; revision=133010
* Add support for multibyte characters and characters that take up moreTim J. Robbins2004-06-241-24/+27
| | | | | | | than one column position. Notes: svn path=/head/; revision=131056
* ANSIify function definitions.David Malone2002-09-041-9/+5
| | | | | | | | | | | | 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
* Only advance the column position for printable characters, update manualTim J. Robbins2002-06-172-4/+6
| | | | | | | page to emphasise that we count column positions, not characters. Notes: svn path=/head/; revision=98342
* Typo: use plural now that we have more than one option.Tim J. Robbins2002-05-251-1/+1
| | | | Notes: svn path=/head/; revision=97267
* If a file cannot be processed, try to process any remaining filesTim J. Robbins2002-05-251-3/+5
| | | | | | | then exit non-zero. Notes: svn path=/head/; revision=97266
* Use `The .Nm utility'Philippe Charnier2002-04-191-2/+3
| | | | Notes: svn path=/head/; revision=95083
* Localize it, LC_CTYPEAndrey A. Chernov2002-04-191-1/+4
| | | | Notes: svn path=/head/; revision=95033
* Add the -b option (break at byte position, not column number) and the -sTim J. Robbins2002-04-182-29/+97
| | | | | | | | | | | | | | | | | | | option (try to break at word bounaries) for SUSv3 conformance. Partially based on the NetBSD version, with the following changes: - style(9) - break on <blank>s, not spaces, per POSIX (and GNU) - when looking for last space on line, search backwards instead of forwards; less comparisons needed this way. - use LINE_MAX macro instead of a magic number and a comment saying it is LINE_MAX. PR: 36245 Reviewed by: mike Obtained from: NetBSD (partially) Notes: svn path=/head/; revision=94978
* remove __PWarner Losh2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92920
* 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
* Make clear that -w gets an argument. Add __FBSDID and remove unusedPhilippe Charnier2001-12-122-6/+6
| | | | | | | #include Notes: svn path=/head/; revision=87751
* Add a missing word to form a complete sentence.Murray Stokely2001-11-191-1/+1
| | | | | | | | PR: docs/32084 Submitted by: setantae@submonkey.net Notes: svn path=/head/; revision=86596
* Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$Dima Dorfman2001-06-301-1/+3
| | | | | | | | | where necessary. Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79011
* The `file' argument is optional.Dima Dorfman2001-06-261-1/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=78795
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68963
* optarg and optind are declared in unistd.h.Warner Losh2000-09-041-2/+0
| | | | | | | h_error is declared in netdb.h Notes: svn path=/head/; revision=65427
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | 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
* Add usage(), use err(3).Philippe Charnier1997-07-081-11/+24
| | | | Notes: svn path=/head/; revision=27270
* 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
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+221
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590