[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Local variables for nested function calls
From: |
Greg Wooledge |
Subject: |
Re: Local variables for nested function calls |
Date: |
Wed, 28 Jul 2021 13:05:44 -0400 |
On Wed, Jul 28, 2021 at 06:55:19PM +0200, eduardo-chibas@caramail.com wrote:
> Some object to this one,
>
> local foo=${foo:-default}
Well, yeah, you can see why. What was 'foo' set to previously? Why are
you only declaring it local *now*, after it possibly already had some
value?
I don't understand the intent of this command, at least not without
some context, so it's difficult for me to approve of it.
What are you actually trying to do?
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Re: Local variables for nested function calls, Greg Wooledge, 2021/07/28
- Re: Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Re: Local variables for nested function calls,
Greg Wooledge <=
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Re: Local variables for nested function calls, Greg Wooledge, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Re: Local variables for nested function calls, Alex fxmbsw7 Ratchev, 2021/07/28
- Local variables for nested function calls, eduardo-chibas, 2021/07/28
- Are you trolling us?, Greg Wooledge, 2021/07/28
- Re: Are you trolling us?, Dennis Williamson, 2021/07/28