[Top][All Lists]
[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
- [Help-bash] declare -i, Bill Gradwohl, 2012/05/08
- Re: [Help-bash] declare -i, Dan Douglas, 2012/05/09
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/09
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/09
- Re: [Help-bash] declare -i, Chet Ramey, 2012/05/09
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/09
- Re: [Help-bash] declare -i, Greg Wooledge, 2012/05/09
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/09
- Re: [Help-bash] declare -i,
DJ Mills <=
- Re: [Help-bash] declare -i, Greg Wooledge, 2012/05/09
- Re: [Help-bash] declare -i, Chet Ramey, 2012/05/09
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/09
- Re: [Help-bash] declare -i, Dan Douglas, 2012/05/09
- Re: [Help-bash] declare -i, Greg Wooledge, 2012/05/10
- Re: [Help-bash] declare -i, Bill Gradwohl, 2012/05/10
- Re: [Help-bash] declare -i, Chet Ramey, 2012/05/10
- Re: [Help-bash] declare -i, Greg Wooledge, 2012/05/10
- Re: [Help-bash] declare -i, Chet Ramey, 2012/05/10
- Re: [Help-bash] declare -i, Dan Douglas, 2012/05/10