On Thu, 2002-09-05 at 17:54, Ian C. Blenke wrote:
> On Thu, 2002-09-05 at 17:02, Ronan Heffernan wrote:
> > > That is bash specific. Won't work on other platforms with a more
> > > traditional bourne shell implementation.
> > >
> >
> > If portability is a concern, I would go with Python. It works the same
> > way regardless of the shell (even non-Bourne shells). It even works on
> > Windows!
>
> It also requires *having* python installed. The same could be said about
> perl, really:
>
> #!/usr/bin/perl
> for($i=0;$i++;$i<10) { system("command") }
> system("othercommand");
>
> You could even do that in a one-liner without a script:
>
> # perl -e 'for ($i=0;$i++;$i<10) { system("command") }'
Correction: "for ($i=0; $i<10; $i++)"... I swapped the damn arguments.
Never did learn to respect C for() loops much. ;)
- Ian C. Blenke <icblenke@nks.net> <ian@blenke.com>
http://ian.blenke.com
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:58:34 EDT