[darcs-devel] rollback.sh

David Roundy droundy at darcs.net
Tue Mar 18 15:14:36 UTC 2008


On Tue, Mar 18, 2008 at 08:10:36PM +1000, Peter B. West wrote:
> Has perl been eliminated? If not
>   for i in `perl -e 'print "@{[1..500]}"'`; do echo $i; done
> 
> Or
>   until [ $(($i+1)) -gt 100 ];do i=$(($i+1)); echo $i; done
> assuming i has not already been set.

Wow.  Amazing the number of solutions that show up when I'm stumped! So
yes, while would work, perl would work, we could write seq in bash, etc,
etc.  But I'll stick with Eric's for loop, for now, since he sent in a
patch.  :)
-- 
David Roundy
Department of Physics
Oregon State University


More information about the darcs-devel mailing list