Print this page
XXX Remove nawk(1)


  76 x="/usr/bin/chmod"
  77 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  78 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  79 
  80 x="/usr/bin/tee"
  81 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  82 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  83 
  84 x="/usr/bin/grep"
  85 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  86 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  87 
  88 x="/usr/bin/egrep"
  89 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  90 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  91 
  92 x="/usr/bin/awk"
  93 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  94 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  95 
  96 x="/usr/bin/nawk"
  97 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  98 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  99 
 100 x="/usr/bin/ksh"
 101 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 102 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 103 
 104 x="/usr/bin/sh"
 105 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 106 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 107 
 108 
 109 # tests done
 110 exit $((Errors))


  76 x="/usr/bin/chmod"
  77 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  78 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  79 
  80 x="/usr/bin/tee"
  81 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  82 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  83 
  84 x="/usr/bin/grep"
  85 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  86 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  87 
  88 x="/usr/bin/egrep"
  89 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  90 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  91 
  92 x="/usr/bin/awk"
  93 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  94 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  95 
  96 x="/usr/xpg4/bin/awk"
  97 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
  98 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
  99 
 100 x="/usr/bin/ksh"
 101 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 102 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 103 
 104 x="/usr/bin/sh"
 105 [[ "$(cat "$x" | /usr/bin/sum)" == "$(cat "$x" | sum)" ]]       || err_exit "pipe: /usr/bin/sum $x != sum $x"
 106 [[ "$(/usr/bin/sum "$x")" == "$(sum "$x")" ]]                   || err_exit "file: /usr/bin/sum $x != sum $x"
 107 
 108 
 109 # tests done
 110 exit $((Errors))