home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_01 / 1001115a < prev    next >
Text File  |  1991-11-22  |  440b  |  21 lines

  1. #!/bin/sh
  2. # Unix script to test return status feature of CMENU
  3. #
  4.  
  5. cat <<END
  6. This is test.sh running, to test the error status
  7. feature of the CMENU system.
  8.  
  9. If you type 'e' to return an error status, rmenu should
  10. prompt before returning to the menu. Otherwise, no prompt
  11. should appear issued:
  12.  
  13. Press just return for normal exit,
  14. or else press 'e' and then the Return key:
  15. END
  16.  
  17. read char
  18. [ "$char" = e ] && exit 1
  19. exit 0
  20.  
  21.