autoscr: Fix one-character lines and non-newline terminated scripts
authorPetri Lehtinen <petri.lehtinen@inoi.fi>
Wed, 10 Sep 2008 06:43:49 +0000 (09:43 +0300)
committerWolfgang Denk <wd@denx.de>
Wed, 10 Sep 2008 09:09:39 +0000 (11:09 +0200)
commit3591293509e0c0bcf244b0f974775bff2e25697e
tree69f5b437324599aca32d09e75edb5c4bee15d898
parent9ebbb54f7a25055010fa6668eba40c72a4c4f985
autoscr: Fix one-character lines and non-newline terminated scripts

When not using hush, the autoscr command now executes lines that are
only one character long. It also runs the last line of scripts even if
it does not end in a newline.

Signed-off-by: Petri Lehtinen <petri.lehtinen@inoi.fi>
common/cmd_autoscript.c