]> code.delx.au - gnu-emacs/commitdiff
Use "echo" as a default for $echo, otherwise we'll execute $DIFF
authorAndré Spiegel <spiegel@gnu.org>
Sat, 18 Mar 2006 14:47:20 +0000 (14:47 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Sat, 18 Mar 2006 14:47:20 +0000 (14:47 +0000)
twice, and once with the wrong options.

lib-src/vcdiff

index 52fdaee0f7f56265ae6b2a83fa90a55f0d0eb316..2cba89df421761668a9532a6b3837fcb4651a597 100755 (executable)
@@ -29,7 +29,7 @@ usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfil
 
 PATH=$PATH:/usr/ccs/bin:/usr/sccs:/usr/xpg4/bin # common SCCS hangouts
 
-echo=
+echo="echo"
 sid1= sid2=
 
 for f
@@ -96,7 +96,7 @@ do
                                workfile=$rev2
                        esac
                then
-                       $echo $DIFF $options $sid1 $sid2 $workfile >&2
+                       $echo $DIFF $options $rev1 $workfile >&2
                        $DIFF $options $rev1 $workfile
                        s=$?
                fi