home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!uunet.ca!geac!r-node!singh
- From: singh@r-node.gts.org (Rajendra Singh)
- Subject: [TCSH] IF's in .login
- Message-ID: <1992Aug23.234043.20012@r-node.gts.org>
- Organization: Public Access UNIX Information System
- Date: Sun, 23 Aug 1992 23:40:43 GMT
- Lines: 21
-
- Hello:
-
- I've noticed something strange, and can't figure out why it happens. If
- 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
-
- However, if I have the exact same lines in a separate file it works. For
- example, if I put the above lines in a file called "compare", then in my
- ".login" I have a line with "compare" on it, then it works fine. Any
- suggestions?
-
- Thanks in advance.
- --
- Raj (singh@r-node.pci.on.ca)
- E-Mail: tcomsing@bluffs.scar.utoronto.ca (University of Toronto)
-