Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>

@@ -25,12 +25,10 @@
 
 
 #       Copyright (c) 1999, 2001 by Sun Microsystems, Inc.
 #       All rights reserved.
 
-#ident  "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.4   */
-
 usage="usage: diff3 file1 file2 file3"
 
 # mktmpdir - Create a private (mode 0700) temporary directory inside of /tmp
 # for this process's temporary files.  We set up a trap to remove the 
 # directory on exit (trap 0), and also on SIGHUP, SIGINT, SIGQUIT, SIGPIPE,

@@ -78,11 +76,11 @@
 
 /usr/bin/diff $f1 $f3 > $tmpdir/d3a$$ 2> $tmpdir/d3a$$.err
 STATUS=$?
 if [ $STATUS -eq 1 ]
 then
-        /usr/xpg4/bin/grep -q "^[<>]" $tmpdir/d3a$$
+        /usr/bin/grep -q "^[<>]" $tmpdir/d3a$$
         RET=$?
         if [ $RET -eq 1 ]
         then
                 /usr/bin/cat $tmpdir/d3a$$
                 exit $STATUS

@@ -103,11 +101,11 @@
 
 /usr/bin/diff $f2 $f3 > $tmpdir/d3b$$ 2> $tmpdir/d3b$$.err
 STATUS=$?
 if [ $STATUS -eq 1 ]
 then
-        /usr/xpg4/bin/grep -q "^[<>]" $tmpdir/d3b$$
+        /usr/bin/grep -q "^[<>]" $tmpdir/d3b$$
         RET=$?
         if [ $RET -eq 1 ]
         then
                 /usr/bin/cat $tmpdir/d3b$$
                 exit $STATUS