for loops
    Chet Ramey 
    chet at odin.INS.CWRU.Edu
       
    Sun Apr  7 08:02:18 AEST 1991
    
    
  
In article <2816 at maestro.htsa.aha.nl> miquels at maestro.htsa.aha.nl (Miquel van Smoorenburg) writes:
$ POSIX states that sh(1) should be able to evaluate expressions, 
$ so you can do something like
$ while [ $FILES != 0 ]
$ do
$ 	echo -n '* '
$ 	FILES=$[$FILES - 1]
$ done
$ 
$ But I haven't seen a sh anywhere that is already capable of doing this
Bash can do this, at least as of version 1.07.
Chet
-- 
Chet Ramey			  Internet: chet at po.CWRU.Edu
Case Western Reserve University	  NeXT Mail: chet at macbeth.INS.CWRU.Edu
``Now,  somehow we've brought our sins back physically -- and they're pissed.''
    
    
More information about the Comp.unix.shell
mailing list