collier@triton.unm.edu (Michael Collier) (10/23/90)
i execute the following piece of cshell under dynix 3.0.12: #! /bin/csh if(0) then if(1) then echo cant get here else echo bug endif endif i get the following output: bug the shell is matching the "else" with the first, outermost "if", not with the second, nested "if". can anyone tell me if this is fixed under 3.0.17? if not, why not? thanks. -- Michael H. Collier INET: collier@ariel.unm.edu BITNET: COLLIER@UNMB home: 1160 Don Pasqual NW; Los Lunas, NM 87031; (505) 865 8770 work: UNM CIRT; 2701 Campus Bvd; Albuquerque, NM 87131; (505) 277 8039
keith@sequoia.execu.com (Keith Pyle) (10/24/90)
In article <1990Oct22.211323.21097@ariel.unm.edu> collier@triton.unm.edu (Michael Collier) writes: >i execute the following piece of cshell under dynix 3.0.12: > ... >the shell is matching the "else" with the first, outermost "if", not with >the second, nested "if". can anyone tell me if this is fixed under 3.0.17? >if not, why not? thanks. The behavior is unchanged in Dynix 3.0.17. It also behaves this way under SunOS 4.0 & 4.1 and System V/386 Release 3.00 on a Unisys U6000/51. It does not have a problem on either Ultrix 3.1 or HP/UX 7.0. I'll refrain from commenting on why I think it wasn't fixed in 3.0.17. -- ----------------------------------------------------------------------------- Keith Pyle UUCP: ...!cs.utexas.edu!execu!keith Execucom Systems Corp., Austin, Texas Internet: keith@execu.com "It's 10 o'clock. Do you know where Disclaimer: What?? your child processes are?" You actually believed me? -----------------------------------------------------------------------------