Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshell/common/tests/sun_solaris_builtin_sum.sh
          +++ new/usr/src/lib/libshell/common/tests/sun_solaris_builtin_sum.sh
↓ open down ↓ 85 lines elided ↑ open up ↑
  86   86  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  87   87  
  88   88  x="/usr/bin/egrep"
  89   89  [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  90   90  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  91   91  
  92   92  x="/usr/bin/awk"
  93   93  [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  94   94  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  95   95  
  96      -x="/usr/bin/nawk"
       96 +x="/usr/xpg4/bin/awk"
  97   97  [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  98   98  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  99   99  
 100  100  x="/usr/bin/ksh"
 101  101  [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 102  102  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 103  103  
 104  104  x="/usr/bin/sh"
 105  105  [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 106  106  [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 107  107  
 108  108  
 109  109  # tests done
 110  110  exit $((Errors))
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX