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,36 **** # 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, --- 25,34 ----
*** 78,88 **** /usr/bin/diff $f1 $f3 > $tmpdir/d3a$$ 2> $tmpdir/d3a$$.err STATUS=$? if [ $STATUS -eq 1 ] then ! /usr/xpg4/bin/grep -q "^[<>]" $tmpdir/d3a$$ RET=$? if [ $RET -eq 1 ] then /usr/bin/cat $tmpdir/d3a$$ exit $STATUS --- 76,86 ---- /usr/bin/diff $f1 $f3 > $tmpdir/d3a$$ 2> $tmpdir/d3a$$.err STATUS=$? if [ $STATUS -eq 1 ] then ! /usr/bin/grep -q "^[<>]" $tmpdir/d3a$$ RET=$? if [ $RET -eq 1 ] then /usr/bin/cat $tmpdir/d3a$$ exit $STATUS
*** 103,113 **** /usr/bin/diff $f2 $f3 > $tmpdir/d3b$$ 2> $tmpdir/d3b$$.err STATUS=$? if [ $STATUS -eq 1 ] then ! /usr/xpg4/bin/grep -q "^[<>]" $tmpdir/d3b$$ RET=$? if [ $RET -eq 1 ] then /usr/bin/cat $tmpdir/d3b$$ exit $STATUS --- 101,111 ---- /usr/bin/diff $f2 $f3 > $tmpdir/d3b$$ 2> $tmpdir/d3b$$.err STATUS=$? if [ $STATUS -eq 1 ] then ! /usr/bin/grep -q "^[<>]" $tmpdir/d3b$$ RET=$? if [ $RET -eq 1 ] then /usr/bin/cat $tmpdir/d3b$$ exit $STATUS