Home | History | Annotate | only in /src/usr.bin/seq
History log of /src/usr.bin/seq
RevisionDateAuthorComments
 1.4 17-Aug-2011  christos document non literal string format
 1.3 14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.2 07-Jan-2006  garbled branches: 1.2.30;
Add missing DPADD for LIBMATH
 1.1 20-Jan-2005  ginsbach seq(1) - print sequences of numbers
 1.2.30.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.12 28-Feb-2022  wiz seq(1): add more examples, improve wording

From OpenBSD via jmc@OpenBSD
 1.11 01-Nov-2021  andvar fix typos, mainly in words minimum and maximum, but also few others.
 1.10 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.9 18-Aug-2016  sevan branches: 1.9.12; 1.9.14;
seq(1) first appeared in Research Unix 8th Edition, which was before Plan 9.
Generalise in stating that this version is not bug for bug compatible with other
implementations.
Bump date.
Via FreeBSD bug 181390 with feedback from Warren Block.
 1.8 07-Apr-2013  jdf * Punctuation
* Create separate section with macro for EXIT STATUS
Patch supplied by Bug Hunting.
 1.7 27-May-2010  dholland branches: 1.7.6; 1.7.12;
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.6 26-Nov-2008  ginsbach new sentence, new line
 1.5 30-Apr-2008  ginsbach Remove clause 3 and 4 from TNF licenses
 1.4 20-Jan-2005  ginsbach branches: 1.4.26;
Add missing 'by' in license attribution -- Thanks, wiz!
 1.3 20-Jan-2005  wiz Add RCS Id; sort option(s) without arguments before options with,
in SYNOPSIS; add prompts in examples; sort format letters as option letters would be sorted.
 1.2 20-Jan-2005  wiz Drop trailing whitespace.
 1.1 20-Jan-2005  ginsbach seq(1) - print sequences of numbers
 1.4.26.1 18-May-2008  yamt sync with head.
 1.7.12.1 23-Jun-2013  tls resync from head
 1.7.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.14.1 10-Jun-2019  christos Sync with HEAD
 1.9.12.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 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