]> asedeno.scripts.mit.edu Git - linux.git/commit
torture: Explain and simplify odd "for" loop in mkinitrd.sh
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 4 Dec 2018 22:59:12 +0000 (14:59 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:37:09 +0000 (15:37 -0800)
commit0d8a9ea9764a0e34e17e3b80a2be3855de239d6e
tree326c42579e175127b216f9f01a997812f6943e86
parentcd618d102b753a3f6823b297ac5c5d03d4e7f0c2
torture: Explain and simplify odd "for" loop in mkinitrd.sh

Why a Bourne-shell "for" loop?  And why 192 instances of "a"?  This commit
adds a shell comment to present the answer to these mysteries.  It also
uses a series of factor-of-four Bourne-shell assignments to make it
easy to see how many instances there are, replacing the earlier wall of
'a' characters.

Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
[ paulmck: Fix wrong-variable bugs noted by Andrea Parri. ]
tools/testing/selftests/rcutorture/bin/mkinitrd.sh