linux/tools
Akinobu Mita d6b09e754c fault-injection: fix failcmd.sh warning
"fault-injection: add tool to run command with failslab or
fail_page_alloc" added tools/testing/fault-injection/failcmd.sh to make it
easier to inject slab/page allocation failures by fault injection.

failcmd.sh prints the following warning when running with arguments
for command.

	# ./failcmd.sh echo aaa
	failcmd.sh: line 209: [: echo: binary operator expected
	aaa

This warning is caused by an improper check whether at least one
parameter is left after parsing command options.

Fix it by testing the length of $1 instead of $@

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-31 18:42:38 -07:00
..
firewire
hv
include/tools
lguest
lib/traceevent tools lib traceevent: Cleanup realloc use 2012-07-04 13:40:31 +09:00
nfsd
perf Merge branch 'linus' into perf/core 2012-07-18 11:17:17 +02:00
power tools/power: turbostat: fix large c1% issue 2012-07-19 22:26:33 -04:00
scripts
testing fault-injection: fix failcmd.sh warning 2012-07-31 18:42:38 -07:00
usb
virtio
vm mm: Fix signal SIGFPE in slabinfo.c. 2012-07-02 23:11:14 +03:00
Makefile