use single quotes when possible, replace echo -n with printf
check ARGV[1] or /bin/bash by default
try to detect the segfault, not syntax error, etc.
	a simple, portable way to detect `abnormal exit status' is better