aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/seq
Commit message (Collapse)AuthorAgeFilesLines
* seq.1: Reset option list alignment + tag spdxAlexander Ziaee2025-05-171-1/+4
| | | | | | | | | | | | | 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 (cherry picked from commit 2f893597fcc34456d5adfc3f1633b39c76d0764f)
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-164-4/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* seq: style(9) cleanupEd Maste2023-07-211-16/+15
| | | | | | This is in part for diff reduction with OpenBSD. Sponsored by: The FreeBSD Foundation
* seq: combine asprintf return value checksEd Maste2023-06-251-7/+3
| | | | | | Error handling is identical for all of these failure cases. Sponsored by: The FreeBSD Foundation
* seq: fix check for rounding error/truncationEd Maste2023-06-191-9/+13
| | | | | | | | | | | | | | 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
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* seq: fix style nitsMariusz Zaborski2022-10-011-1/+1
| | | | MFC after: 2 weeks
* seq: fix potential NULL ptr referenceMariusz Zaborski2022-10-011-2/+6
| | | | | | | asprintf(3) allocates memory, and there isn't any guarantee of success. MFC after: 2 weeks Obtained from: OpenBSD
* seq(1): complete EXAMPLES sectionFernando ApesteguĂ­a2020-06-201-9/+34
| | | | | | | | | | | | | | | | | * 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
* seq(1): Require user-provided format strings to contain a conversionConrad Meyer2019-03-072-2/+18
| | | | | | | | | | | | | | 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
* seq(1): Move long_opts up with globalsKyle Evans2018-05-021-9/+9
| | | | Notes: svn path=/head/; revision=333155
* seq(1): Provide some long optionsKyle Evans2018-04-302-6/+16
| | | | | | | | | These match GNU seq(1) names where applicable for compatibility purposes. MFC after: 1 month Notes: svn path=/head/; revision=333122
* seq(1): Consistently include 'last' for non-integersConrad Meyer2018-02-274-19/+89
| | | | | | | | | | | | | | | | 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
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-1/+3
| | | | | | | | | | | | | | | | | 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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Update history. Patch supplied by Sevan Janiyan <venture37@geeklan.co.uk>.Warren Block2016-09-161-10/+5
| | | | | | | | | PR: 181390 Submitted by: ksmakoto@dd.iij4u.or.jp MFC after: 1 week Notes: svn path=/head/; revision=305887
* 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-273-33/+55
| |\ | |/ |/| | | 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
| * 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-081-4/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Sync with NetBSD, mainly address NetBSD bug #43355:Xin LI2014-12-182-31/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+2
| |/ |/| | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | Standardize EXIT STATUS instructions in man pages when possible.Eitan Adler2012-11-181-4/+2
|/ | | | | | | | Approved by: bcr (mentor) MFC after: 3 days Notes: svn path=/head/; revision=243238
* Add missing static keywords to seq(1)Ed Schouten2011-11-061-15/+14
| | | | Notes: svn path=/head/; revision=227182
* Fix typos.Rebecca Cran2010-11-091-3/+3
| | | | | | | | PR: bin/148894 Submitted by: olgeni Notes: svn path=/head/; revision=215034
* Treat numbers after [Ee] a positive number rather than an invalidXin LI2010-02-201-1/+2
| | | | | | | one. Notes: svn path=/head/; revision=204107
* Add seq(1), a small utility to generate sequence number.Xin LI2010-02-193-0/+647
Obtained from: NetBSD MFC after: 3 months Notes: svn path=/head/; revision=204103