setup_test
+check_exit '-eq 1' ali - # gcov
+
expected=$MH_TEST_DIR/$$.expected
expected_err=$MH_TEST_DIR/$$.expected_err
actual=$MH_TEST_DIR/$$.actual
Usage: ali [switches] aliases ...
switches are:
-alias aliasfile
+ -noalias
-[no]list
- -[no]normalize
-[no]user
-version
-help
EOF
-ali -help >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+ali -help | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
# check -version
case `ali -v` in
# check with no arguments and no AliasFile profile component
run_test 'ali' ''
-exit # ???? Temporary, to isolate failure on Solaris.
-
# check with nonexistent alias file
run_test 'ali -alias nonexistent' \
"ali: aliasing error in nonexistent - unable to read 'nonexistent'"