Print this page
12482 Have /usr/bin/awk point to /usr/bin/nawk
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/util-tests/tests/awk/runtests.sh
          +++ new/usr/src/test/util-tests/tests/awk/runtests.sh
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  # Common Development and Distribution License ("CDDL"), version 1.0.
   6    6  # You may only use this file in accordance with the terms of version
   7    7  # 1.0 of the CDDL.
   8    8  #
   9    9  # A full copy of the text of the CDDL should have accompanied this
  10   10  # source.  A copy of the CDDL is also available via the Internet at
  11   11  # http://www.illumos.org/license/CDDL.
  12   12  #
  13   13  
  14   14  #
  15      -# Copyright 2018, Joyent, Inc.
       15 +# Copyright 2020 Joyent, Inc.
  16   16  #
  17   17  
  18      -AWK=/usr/bin/nawk
       18 +AWK=/usr/bin/awk
  19   19  WORKDIR=$(mktemp -d /tmp/nawktest.XXXXXX)
  20   20  
  21   21  SUCCESSES=0
  22   22  TOTAL=0
  23   23  
  24   24  function proctemplate {
  25   25          bash <<-EOF
  26   26          IFS= read -rd '' OUTPUT < $1;
  27   27          printf "%s" "\${OUTPUT//\\\$AWK/\$AWK}";
  28   28          EOF
↓ open down ↓ 170 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX