Fix cdiff error in testsh1.sh

This commit is contained in:
Erik van der Kouwe 2010-08-06 09:27:49 +00:00
parent 16f2eb25f4
commit 5d4ef90b2c

View file

@ -72,7 +72,7 @@ if test `basename a/b/c/d` != 'd'; then Error on basename test 2; fi
cp $f x.c # x.c is a copy $f
echo "/a/s//#####/g" >s # create sed script
sed -f s <x.c >y.c # y.c is new version of x.c
cdiff x.c y.c >y # y is cdiff listing
diff -c x.c y.c >y # y is cdiff listing
patch x.c y 2>/dev/null # z should be y.c
if cmp -s x.c y.c; then : ; else echo Error in cdiff test; fi
rm x.c* y.c s y