Re: [BUG] Associative array initial reference name is made available in another context

2023-07-02 Thread Top Dawn
> > What makes you think so? Variables are always visible in invoked > functions, unless you shadow them using local/declare/typeset. > Thank you very much for this information, I didn't know invoked functions inherited their parent functions variables. I understand better now the use of declare -

Re: Enable compgen even when programmable completions are not available?

2023-07-02 Thread Sam James
Chet Ramey writes: > On 6/29/23 11:16 PM, Eli Schwartz wrote: > >> I assume that, given the option exists in the configure script, there >> are people who will want to use the option made available to them. One >> reason might be because they are configuring it for a system that isn't >> fussed

Re: [BUG] Associative array initial reference name is made available in another context

2023-07-02 Thread Greg Wooledge
On Sun, Jul 02, 2023 at 03:04:25PM +0200, Top Dawn wrote: > > > > What makes you think so? Variables are always visible in invoked > > functions, unless you shadow them using local/declare/typeset. > > > > Thank you very much for this information, I didn't know invoked functions > inherited their

Re: maybe a bug in bash?

2023-07-02 Thread Ángel
On 2023-06-30 at 15:49 +0200, Sebastian Luhnburg wrote: > First, in my LPIC-1 course the lecturer tell me it is better (not > binding) to deny SSH login for root users (especially for the user with > the name root). The reason is simple: decrease the attack surface. Yes, > a secure password need

Document m=1 m=2; echo $m result

2023-07-02 Thread Dan Jacobson
man page says: A variable may be assigned to by a statement of the form name=[value] If value is not given, the variable is assigned the null string. All values undergo tilde expansion, parameter and variable expansion... OK, but do please mention s

Re: Document m=1 m=2; echo $m result

2023-07-02 Thread Lawrence Velázquez
On Sun, Jul 2, 2023, at 8:30 PM, Dan Jacobson wrote: > man page says: > >A variable may be assigned to by a statement of the form > > name=[value] > >If value is not given, the variable is assigned the null string. All >values undergo tilde expansion, param

Re: Document m=1 m=2; echo $m result

2023-07-02 Thread Greg Wooledge
On Sun, Jul 02, 2023 at 08:56:08PM -0400, Lawrence Velázquez wrote: > On Sun, Jul 2, 2023, at 8:30 PM, Dan Jacobson wrote: > > OK, but do please mention somewhere that "if the variable is set more > > than once within the same statement, the final value is used." > > > > $ m=1 m=2; echo $m > > #(Y

Re: Document m=1 m=2; echo $m result

2023-07-02 Thread Dan Jacobson
> "LV" == Lawrence Velázquez writes: LV> This is stated under "Simple Command Expansion". OK good. No more issue.