summaryrefslogtreecommitdiff
path: root/usr.bin/seq
AgeCommit message (Collapse)Author
2025-01-27seq.1: Reset option list alignment + tag spdxAlexander Ziaee
This option list was tabbed over 19 characters. style.mdoc(5) asks that lists are set to the longest item, or if that's too long then to use indent. Resetting it to indent buys us two lines at MANWIDTH 80, and three at 59. MFC after: 3 days Approved by: mhorne (mentor) Differential Revision: https://reviews.freebsd.org/D48350
2024-10-14Update Makefile.depend filesSimon J. Gerraty
After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
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-12-21seq(1): Put separator only between the elements.Pawel Jakub Dawidek
- Using non-default ('\n') separator will produce an output with the separator at the end of the output, eg. % echo "[$(seq -s ' ' 0 2)]" [0 1 2 ] - The output should always be followed by a new line character. Currently: % seq -s ' ' 0 2 0 1 2 % This change makes seq(1) to behave the same way Linux seq(1): % echo "[$(seq -s ' ' 0 2)]" [0 1 2] % seq -s ' ' 0 2 0 1 2 % Approved by: oshogbo Differential Revision: https://reviews.freebsd.org/D43094
2023-08-16Remove $FreeBSD$: two-line nroff patternWarner Losh
Remove /^\.\\"\n\.\\"\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-07-21seq: style(9) cleanupEd Maste
This is in part for diff reduction with OpenBSD. Sponsored by: The FreeBSD Foundation
2023-06-25seq: combine asprintf return value checksEd Maste
Error handling is identical for all of these failure cases. Sponsored by: The FreeBSD Foundation
2023-06-19seq: fix check for rounding error/truncationEd Maste
Based on OpenBSD 30f0fd29ba6c: > We need to compare the printable version of the last value displayed, > not the floating point representation. Otherwise, we may print the > last value twice. PR: 271964 Reported by: Daniel Kolesa Reviewed by: yuripv Obtained from: OpenBSD Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40601
2023-05-12spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2023-04-18Update/fix Makefile.depend for userlandSimon J. Gerraty
2022-10-01seq: fix style nitsMariusz Zaborski
MFC after: 2 weeks
2022-10-01seq: fix potential NULL ptr referenceMariusz Zaborski
asprintf(3) allocates memory, and there isn't any guarantee of success. MFC after: 2 weeks Obtained from: OpenBSD
2020-06-20seq(1): complete EXAMPLES sectionFernando ApesteguĂ­a
* Add a small description before the EXAMPLES that are already in the man page to explicitely state what we are trying to show instead of having the user guess what the example is doing. * Add two more examples to show usage of -s, -t and -f * mandoc -Tlint reports irrelevant use of .Tn so remove them since according to mdoc(7) it is there only for compatibility and should not be used in new manuals. Approved by: 0mp@ Notes: svn path=/head/; revision=362435
2019-03-07seq(1): Require user-provided format strings to contain a conversionConrad Meyer
This matches GNU seq, for example. For users that are looking for similar functionality, 'jot -b foo N' will print 'foo' N times. See jot(1). PR: 236347 Reported by: <y AT maya.st> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=344891
2018-05-02seq(1): Move long_opts up with globalsKyle Evans
Notes: svn path=/head/; revision=333155
2018-04-30seq(1): Provide some long optionsKyle Evans
These match GNU seq(1) names where applicable for compatibility purposes. MFC after: 1 month Notes: svn path=/head/; revision=333122
2018-02-27seq(1): Consistently include 'last' for non-integersConrad Meyer
The source of error is a rounded increment being too large and thus the loop steps slightly past 'last'. Perform a final comparison using the formatted string values (truncated precision) to determine if we still need to print the 'last' value. PR: 217149 Submitted by: Fernando ApesteguĂ­a <fernando.apesteguia AT gmail.com>, Yuri Pankov <yuripv AT icloud.com> (earlier version) Reported by: Martijn Dekker <mcdutchie AT hotmail.com> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=330086
2017-11-27various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2016-09-16Update history. Patch supplied by Sevan Janiyan <venture37@geeklan.co.uk>.Warren Block
PR: 181390 Submitted by: ksmakoto@dd.iij4u.or.jp MFC after: 1 week Notes: svn path=/head/; revision=305887
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
2014-12-18Sync with NetBSD, mainly address NetBSD bug #43355:Xin LI
Fix valid_format() to be more careful about allowing only valid printf formats. Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=275918
2014-11-25Convert to usr.bin/ to LIBADDBaptiste Daroussin
Reduce overlinking Notes: svn path=/head/; revision=275042
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
2013-02-08Sync with HEAD.David E. O'Brien
Notes: svn path=/projects/bmake/; revision=246555
2012-11-18Standardize EXIT STATUS instructions in man pages when possible.Eitan Adler
Approved by: bcr (mentor) MFC after: 3 days Notes: svn path=/head/; revision=243238
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 seq(1)Ed Schouten
Notes: svn path=/head/; revision=227182
2010-11-09Fix typos.Rebecca Cran
PR: bin/148894 Submitted by: olgeni Notes: svn path=/head/; revision=215034
2010-02-20Treat numbers after [Ee] a positive number rather than an invalidXin LI
one. Notes: svn path=/head/; revision=204107
2010-02-19Add seq(1), a small utility to generate sequence number.Xin LI
Obtained from: NetBSD MFC after: 3 months Notes: svn path=/head/; revision=204103