home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3579 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  975 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!ac!ahn
  2. From: ahn@ac.wfunet.wfu.edu (Dave Ahn)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: [TCSH] IF's in .login
  5. Message-ID: <ahn.714629349@ac>
  6. Date: 24 Aug 92 04:09:09 GMT
  7. References: <1992Aug23.234043.20012@r-node.gts.org>
  8. Sender: news@ctr.columbia.edu (The Daily Lose)
  9. Organization: Columbia University Center for Telecommunications Research
  10. Lines: 19
  11. X-Posted-From: ac.wfunet.wfu.edu
  12. X-Posted-Through: sol.ctr.columbia.edu
  13.  
  14. singh@r-node.gts.org (Rajendra Singh) writes:
  15.  
  16. >I have the following line in my ".login" file, I get the error:  if:
  17. >Expression sytax:
  18.  
  19. >if (cmp -s filea fileb) then
  20. >   echo "something"
  21. >else
  22. >   echo "something else"
  23. >endif
  24.  
  25. ......
  26. Do you have a "#/bin/sh" in your .login? If not, try putting the code
  27. in .tcshrc or .cshrc. The problem is that your .login is being executed
  28. in /bin/sh. Try replacing "endif" with "fi" to test this theory.
  29. -dka
  30. -- 
  31. Dave Ahn
  32. ahn@wfunet.wfu.edu
  33.