Finding the last arg

Brandon S. Allbery KB8JRR allbery at NCoast.ORG
Tue Jan 8 12:52:06 AEST 1991


As quoted from <443 at minya.UUCP> by jc at minya.UUCP (John Chambers):
+---------------
| as ad-hoc as the above example implies?  Is there perhaps some logical 
| structure underlying it all that would explain why
|  	for last do :; done
| and
| 	for last
| 	do :
| 	done
| both work but
| 	for last;do :;done
| doesn't?
+---------------

I suspect a /bin/sh bug.  I just tried it on an ancient ksh and an almost-as-
old [ ;-) ] Xenix; Xenix sh barfed, but ksh accepted it.  I'll try it under
System V 3.2 /bin/sh tomorrow.

++Brandon
-- 
Me: Brandon S. Allbery			    VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery at NCoast.ORG		    Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR			    AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY



More information about the Comp.unix.shell mailing list