[VAR] Fix varinit ordering that broke fc
commit80bbe35591f67679c2132e97b0e016f33510830e
authorJilles Tjoelker <jilles@stack.nl>
Wed, 8 Sep 2010 08:17:28 +0000 (8 16:17 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Sep 2010 08:17:28 +0000 (8 16:17 +0800)
tree7e7e3221bc963da63722cb701f2604dd4880745e
parenta92255d6fa8b8efb0f9fb093b77ac601fe3e9ede
[VAR] Fix varinit ordering that broke fc

Git commit 0df96793ef6aa103df228d7dfe56099b7d721a15 "[SHELL] Add
preliminary LINENO support" added the LINENO variable in the middle of
other initialized variables, causing some macros for TERM and HISTSIZE
to break (both of these are only used if libedit support is compiled in,
which is not the case by default).

The breakage is the same as can be seen by setting HISTSIZE=0.

Also add a comment warning about this.

Reported-by: Wez Furlong <kingwez@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
src/var.c