aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/seq/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* seq(1): Require user-provided format strings to contain a conversionConrad Meyer2019-03-071-1/+16
| | | | | | | | | | | | | | 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): Consistently include 'last' for non-integersConrad Meyer2018-02-272-0/+47
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