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>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ldap/ns_ldap/idsconfig.sh
          +++ new/usr/src/cmd/ldap/ns_ldap/idsconfig.sh
↓ open down ↓ 976 lines elided ↑ open up ↑
 977  977      NAWK="/usr/bin/nawk"
 978  978      RM="/usr/bin/rm"
 979  979      WC="/usr/bin/wc"
 980  980      CAT="/usr/bin/cat"
 981  981      SED="/usr/bin/sed"
 982  982      MV="/usr/bin/mv"
 983  983  
 984  984      DOM=""              # Set to NULL
 985  985      # If DNS domain (resolv.conf) exists use that, otherwise use domainname.
 986  986      if [ -f /etc/resolv.conf ]; then
 987      -        DOM=`/usr/xpg4/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
      987 +        DOM=`/usr/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
 988  988              | awk '{ print $2 }' | tail -1`
 989  989      fi
 990  990  
 991  991      # If for any reason the DOM did not get set (error'd resolv.conf) set
 992  992      # DOM to the domainname command's output.
 993  993      if [ "$DOM" = "" ]; then
 994  994          DOM=`domainname`        # domain from domainname command.
 995  995      fi
 996  996  
 997  997      STEP=1
↓ open down ↓ 4377 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX