From 95b19ae0eff9483b53b1359e4aed2443a609b09c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 11 Sep 2011 19:20:52 +0100 Subject: Fix example to use $COMMAND and -c option. --- cmdtest.1.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmdtest.1.in') diff --git a/cmdtest.1.in b/cmdtest.1.in index f9aea7b..8e392bc 100644 --- a/cmdtest.1.in +++ b/cmdtest.1.in @@ -41,7 +41,7 @@ containing the following content: .IP .nf #!/bin/sh -echo hello, world +$COMMAND hello, world .fi .PP Also create the file @@ -53,7 +53,7 @@ hello, world Then you can run the tests: .IP .nf -$ cmdtest echo-tests +$ cmdtest echo-tests -c /bin/echo test 1/1 1/1 tests OK, 0 failures .fi @@ -63,7 +63,7 @@ If you change the stdout file to be something else, will report the differences: .IP .nf -$ cmdtest echo-tests +$ cmdtest echo-tests -c /bin/echo FAIL: hello: stdout diff: --- echo-tests/hello.stdout 2011-09-11 19:14:47 +0100 +++ echo-tests/hello.stdout-actual 2011-09-11 19:14:49 +0100 -- cgit v1.2.1