Home | History | Annotate | Download | only in seq
History log of /src/usr.bin/seq/seq.c
RevisionDateAuthorComments
 1.15  09-Jul-2025  uwe seq: be smarter when inferring precision from arguments

Use the most precisely specified argument to infer precision, not the
last one we happen to process.
 1.14  04-May-2024  mlelstv branches: 1.14.2;
Bail if increment is too small for the precision to avoid an infinite loop.
 1.13  24-Feb-2024  mlelstv Chose better number format.
 1.12  20-Mar-2021  cheusov seq.c: replace non-standard `\e` with standard compliant `\x1B`
 1.11  17-Dec-2018  christos - Default terminator to \n
- Don't print a trailing separator
Behavior now matches GNU seq (from Aram at tech-userlevel)
 1.10  29-Oct-2017  ginsbach branches: 1.10.2; 1.10.4;
The sign is optional in an exponent

Treat numbers after [Ee] as a positive number rather than an invalid
numeric sequence. (Taken from FreeBSD but done differently.)
 1.9  29-Oct-2017  ginsbach Fix typos (from FreeBSD)
 1.8  05-Sep-2016  sevan Drop main() prototype.
 1.7  27-May-2010  dholland Rerun valid_format() both before and after unescaping the format
string, in case the format string contains printf conversions
assembled from escape sequences.

A better approach might be to adjust the unescape logic to avoid
generating printf conversions (e.g. convert \x25 to %% instead of %)
but that's somewhat problematic and it's not really worth taking the
trouble.

Running valid_format() only after unescaping would also be somewhat
tidier but makes printing the invalid format string problematic,
because the unescape logic runs in place.

None of these cases are really worth worrying about in detail, but now
at least they don't result in SIGSEGV.

Related to PR 43355.
 1.6  27-May-2010  dholland Fix valid_format() to be more careful about allowing only valid printf
formats.

Also, accept %a and %A, which are new since this logic was last updated,
and also allow %F even though it's not functionally different from %f.
Document these additions and bump date of man page.

Fixes PR 43355.
 1.5  21-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.4  30-Apr-2008  ginsbach branches: 1.4.2;
Remove clause 3 and 4 from TNF licenses
 1.3  18-Jan-2008  ginsbach branches: 1.3.4;
Fix problem with handling escaped octal and hexadecimal sequences in the -f
format option. The problem is that the next character after such an escape
was not copied to the output.
 1.2  20-Jan-2005  wiz branches: 1.2.18;
Sync usage with man page.
 1.1  20-Jan-2005  ginsbach seq(1) - print sequences of numbers
 1.2.18.1  23-Mar-2008  matt sync with HEAD
 1.3.4.1  18-May-2008  yamt sync with head.
 1.4.2.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.4.1  10-Jun-2019  christos Sync with HEAD
 1.10.2.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.14.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed