home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!acorn!ixi!ixi!pd
- From: pd@x.co.uk (Paul Davey)
- Newsgroups: comp.unix.shell
- Subject: Re: if syntax
- Message-ID: <PD.92Nov7194625@herts.x.co.uk>
- Date: 7 Nov 92 19:46:25 GMT
- References: <1992Nov5.230024.14504@u.washington.edu> <6430@falcon.ukc.ac.uk>
- Sender: paul@x.co.uk (Paul Davey)
- Organization: IXI Ltd.
- Lines: 20
- In-Reply-To: bnb@ukc.ac.uk's message of 6 Nov 92 13:58:05 GMT
- X-Disclaimer: This is not the view of IXI Ltd unless explicitly stated.
- X-Copyright: The author asserts the right of paternity in this message.
-
-
- >>>>> On 6 Nov 92 13:58:05 GMT, bnb@ukc.ac.uk (B.N.Blackmore) said:
-
- -> If you still need to write this in C-Shell the following should do
- -> what you require. (no bets on it though)
- ... (deleted)
-
- Or alternatively,
-
- #! /bin/csh -f
- test -s testes
- if ( ! $status) echo "yes"
-
- Note that the ``!'' character is needed since the ``if'' in csh has
- reverse logic to the bourne sh ``if''.
-
- -> A better idea though would be to program it in the bourne shell
-
- Quite so.
-
- --
- Regards, IXI Internet: pd@x.co.uk
- Paul Davey Vision Park UUCP: pd@ixi.uucp
- Cambridge Bang: ...!uunet!ixi!pd
- "These are interesting times" CB4 4ZR, UK Tel: +44 223 236 555
-