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>

@@ -982,11 +982,11 @@
     MV="/usr/bin/mv"
 
     DOM=""              # Set to NULL
     # If DNS domain (resolv.conf) exists use that, otherwise use domainname.
     if [ -f /etc/resolv.conf ]; then
-        DOM=`/usr/xpg4/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
+        DOM=`/usr/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
             | awk '{ print $2 }' | tail -1`
     fi
 
     # If for any reason the DOM did not get set (error'd resolv.conf) set
     # DOM to the domainname command's output.