home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / input / gunzip < prev    next >
Text File  |  1994-08-17  |  419b  |  21 lines

  1. #! /bin/sh
  2. # gunzip-er
  3.  
  4. # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  5. . ${NEWSCONFIG-/etc/news/bin/config}
  6.  
  7. PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
  8. umask $NEWSUMASK
  9.  
  10. case "$1" in
  11. -c)    # oh my, recursive loop somehow...
  12.     (
  13.         echo "$NEWSBIN/decompressors/gunzip, attempting to invoke the"
  14.         echo "real gunzip, invoked itself somehow."
  15.     ) | report -u 'news gunzip PATH misconfigured'
  16.     exit 1
  17.     ;;
  18. esac
  19.  
  20. exec gunzip -c
  21.