home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!ac!ahn
- From: ahn@ac.wfunet.wfu.edu (Dave Ahn)
- Newsgroups: comp.unix.shell
- Subject: Re: [TCSH] IF's in .login
- Message-ID: <ahn.714629349@ac>
- Date: 24 Aug 92 04:09:09 GMT
- References: <1992Aug23.234043.20012@r-node.gts.org>
- Sender: news@ctr.columbia.edu (The Daily Lose)
- Organization: Columbia University Center for Telecommunications Research
- Lines: 19
- X-Posted-From: ac.wfunet.wfu.edu
- X-Posted-Through: sol.ctr.columbia.edu
-
- singh@r-node.gts.org (Rajendra Singh) writes:
-
- >I have the following line in my ".login" file, I get the error: if:
- >Expression sytax:
-
- >if (cmp -s filea fileb) then
- > echo "something"
- >else
- > echo "something else"
- >endif
-
- ......
- Do you have a "#/bin/sh" in your .login? If not, try putting the code
- in .tcshrc or .cshrc. The problem is that your .login is being executed
- in /bin/sh. Try replacing "endif" with "fi" to test this theory.
- -dka
- --
- Dave Ahn
- ahn@wfunet.wfu.edu
-