summaryrefslogtreecommitdiff
path: root/usr.bin/column
AgeCommit message (Collapse)Author
2025-05-13column(1): add -l flagLexi Winter
the '-l <tblcols>' flag limits the number of columns that column(1) will produce in -t mode. this is syntax-compatible with the same option in util-linux's column(1), but due to existing differences between the two implementations, it's not semantically compatible. as a side-effect, fix a pre-existing bug where empty fields could cause incorrect output: % echo ':' | column -ts: (null) while here, also fix a couple of minor existing issues. Reviewed by: des Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50290
2025-05-07column(1): add testsLexi Winter
Reviewed by: des Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D49911
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2023-11-26Remove copyright strings ifdef'd outWarner Losh
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
2023-11-26usr.bin: Remove ancient SCCS tags.Warner Losh
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: one-line nroff patternWarner Losh
Remove /^\.\\"\s*\$FreeBSD\$$\n/
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-04-18Update/fix Makefile.depend for userlandSimon J. Gerraty
2017-12-28Free data after we're done with it.Warner Losh
CID: 271595, 275337, 1368743 Notes: svn path=/head/; revision=327268
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
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
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2017-02-28Renumber copyright clause 4Warner Losh
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
2015-12-29Fix type mismatches for malloc(3) and Co.Ulrich Spörlein
This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722 Notes: svn path=/head/; revision=292864
2015-06-13Add META_MODE support.Simon J. Gerraty
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
2015-06-08dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=284172
2015-05-27Merge sync of headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=283595
2015-03-31Remove bogus cast.Kevin Lo
Notes: svn path=/head/; revision=280911
2014-05-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=266219
2014-05-10Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265802
2013-03-11Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=248169
2013-02-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=246868
2012-08-22Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar
Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
2011-11-06Add missing static keywords to column(1)Ed Schouten
Notes: svn path=/head/; revision=227159
2010-12-11Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl
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
2010-04-14mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein
Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors) Notes: svn path=/head/; revision=206622
2006-12-15Fix the fix in rev. 1.15 so that we jump to the next columnRuslan Ermilov
instead of always skipping it. MFC after: 3 days Notes: svn path=/head/; revision=165249
2006-09-19Add missing parentheses to fix a segmentation fault that is easilyIan Dowse
reproducable with `jot -s " " 400 1 | column -t'. The bug was present in the the original CSRG 'column -t' added in 1989. Notes: svn path=/head/; revision=162453
2006-02-13The change to make column use roundup(x, TAB) rounded things to theDavid Malone
current tab, however the code it replaced wanted to round to the next TAB. Consequently things like this: ( echo 1 ; echo 2 ) | column cause column to loop indefinitely. This patch is slightly different from the one Gary submitted, but is closer to the original code. Submitted by: Gary Cody <gary@lyranthe.org> MFC after: 1 week Notes: svn path=/head/; revision=155621
2005-01-25Take a swing at using roundup().Juli Mallett
Notes: svn path=/head/; revision=140784
2005-01-18Sort sections.Ruslan Ermilov
Notes: svn path=/head/; revision=140420
2005-01-17Added the EXIT STATUS section where appropriate.Ruslan Ermilov
Notes: svn path=/head/; revision=140368
2005-01-11Scheduled mdoc(7) sweep.Ruslan Ermilov
Notes: svn path=/head/; revision=140055
2004-07-29Add support for multibyte characters.Tim J. Robbins
Notes: svn path=/head/; revision=132835
2004-07-15Avoid passing negative values to isspace() on machines with signed chars.Tim J. Robbins
Notes: svn path=/head/; revision=132202
2004-07-15Document line length and multibyte character limitations.Tim J. Robbins
Notes: svn path=/head/; revision=132184
2002-07-28ANSify function definitions to avoid a warning.David Malone
Notes: svn path=/head/; revision=100818
2002-03-22remove __PWarner Losh
Notes: svn path=/head/; revision=92920
2002-02-08Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray
help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
2001-12-10Style improvements recommended by Bruce as a follow up to someDavid Malone
of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
2001-12-02Use __FBSDID().Mark Murray
Notes: svn path=/head/; revision=87246
2001-12-02WARNS=2 fixup.Mark Murray
Notes: svn path=/head/; revision=87213
2001-08-15mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov
Notes: svn path=/head/; revision=81687
2001-07-24Remove the misnamed `emalloc' and replace its uses with calloc (alongDavid E. O'Brien
with error checking) which it effectively was. (malloc+memset) Notes: svn path=/head/; revision=80292
2001-07-15Remove whitespace at EOL.Dima Dorfman
Notes: svn path=/head/; revision=79755
2001-04-03Round up before checking if the width is smaller than the widestDavid Malone
column, otherwise we may divide by zero later. PR: 26283 Reviewed by: roam Notes: svn path=/head/; revision=75137
2000-11-20mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov
Notes: svn path=/head/; revision=68963
2000-03-26Add DIAGNOSTICS section namePhilippe Charnier
Notes: svn path=/head/; revision=58612
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50477
1999-07-12Add $Id$, to make it simpler for members of the translation teams toNik Clayton
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