Re: Documentation consistency in the Arrays section

2019-02-21 Thread Andreas Schwab
On Feb 21 2019, Jeff Schaller  wrote:

> --- bashref.texi2019-02-21 09:10:12.0 -0500
> +++ bashref.texi.new2019-02-21 09:10:49.679101000 -0500
> @@ -7187,7 +7187,7 @@
>  @noindent
>  Associative arrays are created using
>  @example
> -declare -A @var{name}.
> +declare -A @var{name}
>  @end example

Perhaps it should be reformulated to avoid putting the example at the
end of the sentence.

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



Re: bash 5.0 dies with HISTSIZE=0

2019-02-21 Thread Michael Albinus
Chet Ramey  writes:

>> PS: Could you pls give me a bug number or something like this, that I
>> can reference to?
>
> You can use the link to the mailing list. There is a more formal bug
> tracking system on savannah.gnu.org, but few people use it.

I know. That's why several GNU projects use debbugs.gnu.org, which runs
Debian's BTS software.

> Chet

Best regrds, Michael.



Re: Bash reference manual

2019-02-21 Thread Wail Yahyaoui
Ok, thank you.

⁣Wail

Sent from BlueMail ​

On Feb 21, 2019, 16:10, at 16:10, Chet Ramey  wrote:
>On 2/21/19 6:04 AM, Wail Yahyaoui wrote:
>> Hello,
>>
>> I was reading the Bash reference manual online and I could not find
>any mention that when doing variable assignments there should be no
>space around the equal sign.
>
>The example in the texinfo manual doesn't include spaces:
>
>A variable may be assigned to by a statement of the form
> NAME=[VALUE]
>
>In addition, the requirement that there be no spaces is implied, since
>the
>assignment statement has to be a single word.
>
>--
>``The lyf so short, the craft so long to lerne.'' - Chaucer
>``Ars longa, vita brevis'' - Hippocrates
>Chet Ramey, UTech, CWRUc...@case.edu
>http://tiswww.cwru.edu/~chet/


Re: Bash reference manual

2019-02-21 Thread Chet Ramey
On 2/21/19 6:04 AM, Wail Yahyaoui wrote:
> Hello,
> 
> I was reading the Bash reference manual online and I could not find any 
> mention that when doing variable assignments there should be no space around 
> the equal sign.

The example in the texinfo manual doesn't include spaces:

A variable may be assigned to by a statement of the form
 NAME=[VALUE]

In addition, the requirement that there be no spaces is implied, since the
assignment statement has to be a single word.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: bash 5.0 dies with HISTSIZE=0

2019-02-21 Thread Chet Ramey
On 2/21/19 5:32 AM, Michael Albinus wrote:


> PS: Could you pls give me a bug number or something like this, that I
> can reference to?

You can use the link to the mailing list. There is a more formal bug
tracking system on savannah.gnu.org, but few people use it.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Re: Documentation consistency in the Arrays section

2019-02-21 Thread Chet Ramey
On 2/21/19 9:11 AM, Jeff Schaller wrote:
> The bulk of the array declaration examples do not have a period at the end,
> making http://git.savannah.gnu.org/cgit/bash.git/tree/doc/bashref.texi#n7190
> a needlessly confusing example. I'd like to propose removing the period at
> the end:

Good catch, thanks.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Documentation consistency in the Arrays section

2019-02-21 Thread Jeff Schaller
The bulk of the array declaration examples do not have a period at the end,
making http://git.savannah.gnu.org/cgit/bash.git/tree/doc/bashref.texi#n7190
a needlessly confusing example. I'd like to propose removing the period at
the end:

--- bashref.texi2019-02-21 09:10:12.0 -0500
+++ bashref.texi.new2019-02-21 09:10:49.679101000 -0500
@@ -7187,7 +7187,7 @@
 @noindent
 Associative arrays are created using
 @example
-declare -A @var{name}.
+declare -A @var{name}
 @end example

 Attributes may be



-jeff


Bash reference manual

2019-02-21 Thread Wail Yahyaoui
Hello,

I was reading the Bash reference manual online and I could not find any mention 
that when doing variable assignments there should be no space around the equal 
sign.

Regards,

⁣Wail

Sent from BlueMail ​


Re: bash 5.0 dies with HISTSIZE=0

2019-02-21 Thread Michael Albinus
Greg Wooledge  writes:

> Bash doesn't use a formal bug tracking system.  Chet manages it all
> by hand.  Your best bet is to find the list archive copy of this thread,
> and bookmark it.  (Start at .)

I see, thanks!

Best regards, Michael.



Re: bash 5.0 dies with HISTSIZE=0

2019-02-21 Thread Greg Wooledge
On Thu, Feb 21, 2019 at 11:32:02AM +0100, Michael Albinus wrote:
> PS: Could you pls give me a bug number or something like this, that I
> can reference to?

Bash doesn't use a formal bug tracking system.  Chet manages it all
by hand.  Your best bet is to find the list archive copy of this thread,
and bookmark it.  (Start at .)



Re: bash 5.0 dies with HISTSIZE=0

2019-02-21 Thread Michael Albinus
Chet Ramey  writes:

Hi Chet,

>> Description:
>> This is an error report from an Emacs/Tramp user. With bash 5.0, bash
>> 5.0 dies when HISTSIZE is set to 0. Setting it to 1 seems to work. Using
>> bash 4.4 works as well. https://debbugs.gnu.org/34192> for details.
>
> Thanks for the report. Try the attached patch and see if that fixes the
> crash.

Thanks a lot, your patch fixes the problem.

> Chet

Best regards, Michael.

PS: Could you pls give me a bug number or something like this, that I
can reference to?