home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4557 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  813 b 

  1. Path: sparky!uunet!ogicse!news.u.washington.edu!carson.u.washington.edu!micah
  2. From: micah@carson.u.washington.edu (Micah Anderson)
  3. Newsgroups: comp.unix.shell
  4. Subject: if syntax
  5. Summary: what is wrong with this syntax?
  6. Keywords: if, csh
  7. Message-ID: <1992Nov5.230024.14504@u.washington.edu>
  8. Date: 5 Nov 92 23:00:24 GMT
  9. Article-I.D.: u.1992Nov5.230024.14504
  10. Sender: news@u.washington.edu (USENET News System)
  11. Organization: University of Washington
  12. Lines: 14
  13.  
  14. Am I stupid or what? I cannot figger out why the hell this does this...
  15. I made a simple script (in order to demonstrate a harder problem...)
  16.  
  17. #! /bin/csh -f
  18. if test -s testes then
  19.           echo "yes"
  20. endif
  21. end
  22.  
  23. when I try to run it I get:
  24. if: Expression syntax.
  25.  
  26. what the hell do I do? I have been beating my brains out over this simple
  27. friggin' thing...
  28.