]> git.ipfire.org Git - thirdparty/util-linux.git/commit
reset: make scripts bourne sh compliant [checkbashisms]
authorSami Kerola <kerolasa@iki.fi>
Sun, 18 Mar 2012 20:10:35 +0000 (21:10 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Mar 2012 14:48:12 +0000 (16:48 +0200)
commitb0660441de984582c4c2fc97fa22c0cea2c17d84
treef46f8857272e76f59fb7482784d9b36807091066
parent47a9edbd6d63d279ef2c92c63716d4dbbe40fc66
reset: make scripts bourne sh compliant [checkbashisms]

In addition strict compliance the commit will take variable name
quoting, and $(command) substitution in use.

$ checkbashisms reset reset.033c
possible bashism in reset line 11 ('$[' should be '$(('):
bot=$[ ${LINES:-`tput lines`} - 1 ]
possible bashism in reset.033c line 11 (echo -e):
echo -e \\033c

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/reset [changed mode: 0644->0755]
term-utils/reset.033c