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>
   1 #! /usr/bin/ksh
   2 #
   3 #
   4 # This file and its contents are supplied under the terms of the
   5 # Common Development and Distribution License ("CDDL"), version 1.0.
   6 # You may only use this file in accordance with the terms of version
   7 # 1.0 of the CDDL.
   8 #
   9 # A full copy of the text of the CDDL should have accompanied this
  10 # source.  A copy of the CDDL is also available via the Internet at
  11 # http://www.illumos.org/license/CDDL.
  12 #
  13 
  14 #
  15 # Copyright 2017 Nexenta Systems, Inc. All rights reserved.
  16 #
  17 
  18 XGREP=${XGREP:=/usr/xpg4/bin/grep}
  19 FILEDIR=$MY_TESTS/tests/files
  20 
  21 fail() {
  22         echo $1
  23         exit -1
  24 }
  25 
  26 FLAGLIST="
  27 -n
  28 -c
  29 -q
  30 -v
  31 -nv
  32 -vc
  33 -A 5
  34 -nA 5
  35 -cA 5
  36 -qA 5
  37 -vA 5
  38 -nvA 5


   1 #! /usr/bin/ksh
   2 #
   3 #
   4 # This file and its contents are supplied under the terms of the
   5 # Common Development and Distribution License ("CDDL"), version 1.0.
   6 # You may only use this file in accordance with the terms of version
   7 # 1.0 of the CDDL.
   8 #
   9 # A full copy of the text of the CDDL should have accompanied this
  10 # source.  A copy of the CDDL is also available via the Internet at
  11 # http://www.illumos.org/license/CDDL.
  12 #
  13 
  14 #
  15 # Copyright 2017 Nexenta Systems, Inc. All rights reserved.
  16 #
  17 
  18 XGREP=${XGREP:=/usr/bin/grep}
  19 FILEDIR=$MY_TESTS/tests/files
  20 
  21 fail() {
  22         echo $1
  23         exit -1
  24 }
  25 
  26 FLAGLIST="
  27 -n
  28 -c
  29 -q
  30 -v
  31 -nv
  32 -vc
  33 -A 5
  34 -nA 5
  35 -cA 5
  36 -qA 5
  37 -vA 5
  38 -nvA 5