On Mon, Jun 02, 2003 at 06:55:48PM +0200, Andreas Hartmann wrote:
> Michael Frank wrote:
> > GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
> > - while (( i-- )); do
> > + while (( i=`expr $i - 1` )); do
> > In your opinion are your changes more portable across a wide range of
> > systems?
> I didn't think at portability :-). I only made it working for me. Maybe
> there are other persons out there who do have some old versions too - so
> they can use this patch.
Well, I found that i--/i++ don't work with bash-2.03 (present about everywhere)
but i=i-1 or i=i+1 work well. So at least, for portability, this could be
rewritten as "while (( i=i-1 )); do".
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:17 EST