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/sgs/test/ld/x64/tls/ie/x64-ie-test.sh
          +++ new/usr/src/cmd/sgs/test/ld/x64/tls/ie/x64-ie-test.sh
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9  # source.  A copy of the CDDL is also available via the Internet at
  10   10  # http://www.illumos.org/license/CDDL.
  11   11  #
  12   12  
  13   13  # Copyright 2012, Richard Lowe.
  14   14  
  15   15  function grep_test {
  16   16      name=$1
  17   17      pattern=$2
  18   18  
  19      -    if /usr/xpg4/bin/fgrep -q "${pattern}"; then
       19 +    if /usr/bin/fgrep -q "${pattern}"; then
  20   20          print -u2 "pass: $name"
  21   21      else
  22   22          print -u2 "FAIL: $name"
  23   23      fi
  24   24  }        
  25   25  
  26   26  function dis_test {
  27   27      name=${1}
  28   28      func=${2}
  29   29      file=${3}
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX