Article View: comp.sys.sequent
Article #367Re: cshell bug? RTM
From: John Barlow
Date: Mon, 29 Oct 1990 09:35
Date: Mon, 29 Oct 1990 09:35
33 lines
1672 bytes
1672 bytes
I run Dynix 3.0.12, and the following code works, as long as you
have the space between the "if" and the "(" :
#!/bin/csh
if (0) then
if (1) then
echo cant get here
else
echo bug
endif
endif
if you don't have the space it echos "bug".
Please note the manual (although you have to wade through 11 pages,
and then its only a few lines):
> ... It is important to note that no two components of
> an expression can appear in the same word; except when
>
>Revision 1.22 87/08/06 12
>
>CSH(1) DYNIX Programmer's Manual CSH(1)
>
> adjacent to components of expressions which are syntacti-
> cally significant to the parser (`&' `|' `<' `>' `(' `)')
> they should be surrounded by spaces.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jdb = John Barlow, Parallel Computing Research Facility,
Australian National University, I-Block, PO Box 4, Canberra, 2601, Australia.
email = jdb@arp.anu.oz.au {soon to be jdb@arp.anu.edu.au}
[International = +61 6, Australia = 06] [Phone = 2492930, Fax = 2490747]
Technical Details
Message-ID:
<1990Oct29.093527.3190@arp.anu.oz.au>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!dimacs.rutgers.edu!mips!bridge2!jarthur!usc!samsung!munnari.oz.au!csc.anu.oz.au!csc3.anu.oz.au!anucsd!arp!arp.anu.oz.au!jdbReferences:
<1990Oct22.211323.21097@ariel.unm.edu> <26897@sequoia.execu.com> <446@pdxgate.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!dimacs.rutgers.edu!mips!bridge2!jarthur!usc!samsung!munnari.oz.au!csc.anu.oz.au!csc3.anu.oz.au!anucsd!arp!arp.anu.oz.au!jdb From: jdb@arp.anu.oz.au (John Barlow) Newsgroups: comp.sys.sequent Subject: Re: cshell bug? RTM Message-ID: <1990Oct29.093527.3190@arp.anu.oz.au> Date: 29 Oct 90 09:35:27 GMT References: <1990Oct22.211323.21097@ariel.unm.edu> <26897@sequoia.execu.com> <446@pdxgate.UUCP> Sender: news@arp.anu.oz.au Reply-To: jdb@arp.anu.oz.au (John Barlow) Organization: Automated Reasoning Project Lines: 33