help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] declare -i


From: DJ Mills
Subject: Re: [Help-bash] declare -i
Date: Wed, 9 May 2012 16:50:57 -0400

On Wed, May 9, 2012 at 4:43 PM, Bill Gradwohl <address@hidden> wrote:
>
> All this while I assumed that -i was doing efficient things behind the
> scenes using binaries to hold integers. Now I realize that -i doesn't do
> anything of the sort and actually adds overhead. I conclude -i isn't worth
> using unless the side effects are what you want.
>
> --
> Bill Gradwohl
>

If you want the an arithmetic context, why not simply use (( or $((?

I can't think of another time when "-i"-like behavior would be needed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]