]> diplodocus.org Git - nmh/blobdiff - test/ali/test-ali
Deference char pointer to test for empty string instead of strlen(3).
[nmh] / test / ali / test-ali
index 4f25ef60b0b8d8be039d878791fc86e19bba9887..41ddb956b16b70df0ad8d1d72ee263bca8dc0f99 100755 (executable)
@@ -30,14 +30,16 @@ cat >$expected <<EOF
 Usage: ali [switches] aliases ...
   switches are:
   -alias aliasfile
+  -noalias
   -[no]list
   -[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