Re: [PATCH 9/9] doc/bash.1: Resync w/ lib/readline/doc/readline.3.

2024-12-31 Thread G. Branden Robinson
At 2024-12-31T13:05:30-0500, Chet Ramey wrote: > On 12/30/24 8:16 PM, G. Branden Robinson wrote: > Since I maintain six separate documents, the style I choose usually > depends on the style for the document where a particular piece of text > originates. Fair, but having different line breaking pra

Re: Consolidate recommended options?

2024-12-31 Thread Greg Wooledge
On Tue, Dec 31, 2024 at 12:15:27 -0500, Chet Ramey wrote: > On 12/29/24 4:34 PM, Lawrence Velázquez wrote: > > I'm aware of the pitfalls described therein, and more. I don't > > think anyone thinks multiple evaluation in indexes is good per se, > > but many find the side effects of the attempted c

Re: [PATCH 6/9] Slightly revise documentation of POSIX mode.

2024-12-31 Thread G. Branden Robinson
At 2024-12-31T12:35:15-0500, Chet Ramey wrote: > On 12/30/24 8:29 PM, G. Branden Robinson wrote: > > At 2024-12-30T12:40:48-0500, Chet Ramey wrote: > > > On 12/16/24 12:48 PM, G. Branden Robinson wrote: > > > > * doc/bash.1: Introduce "POSIX mode" earlier in the document. > > > > Set the word "POSI

Re: Consolidate recommended options?

2024-12-31 Thread microsuxxor
i found it working if i $key in (( , not just '[key]' i dunno i look for cmds to make em work .. On Tue, Dec 31, 2024, 6:15 PM Chet Ramey wrote: > On 12/29/24 4:34 PM, Lawrence Velázquez wrote: > > > I'm aware of the pitfalls described therein, and more. I don't > > think anyone thinks multipl

Re: Logical expression works does not work as expected

2024-12-31 Thread Chet Ramey
On 12/28/24 3:23 PM, Lawrence Velázquez wrote: On Fri, Dec 27, 2024, at 6:47 PM, Greg Wooledge wrote: You might have been raised on some other language where the && and || operators have different precedence. In the shell language, they have the same precedence. However, the && and || arithme

Re: Consolidate recommended options?

2024-12-31 Thread Chet Ramey
On 12/29/24 3:44 PM, Daniel Colascione wrote: I wonder whether it would be possible to add a simple catch-all command that would encompass a set of options that can't be defaults but that make writing shell scripts easier, e.g. set -euo pipefail, nullglob, inherit_errexit, extglob, assoc_expand_o

Re: [PATCH] Fix some documentation errors

2024-12-31 Thread Chet Ramey
On 12/28/24 11:46 PM, Lawrence Velázquez wrote: Also replace "behaviour" with "behavior", which the project prefers. Thanks for the fixes. (I left "behaviour" in there since the beginning for a memorialization of Brian's work on the documents, but it's probably time to remove it.) Chet -- ``T

Re: [PATCH 6/9] Slightly revise documentation of POSIX mode.

2024-12-31 Thread Chet Ramey
On 12/30/24 8:29 PM, G. Branden Robinson wrote: Hi Chet, Hi. At 2024-12-30T12:40:48-0500, Chet Ramey wrote: On 12/16/24 12:48 PM, G. Branden Robinson wrote: * doc/bash.1: Introduce "POSIX mode" earlier in the document. Set the word "POSIX" in small caps (as traditionally done for acronyms

Re: Consolidate recommended options?

2024-12-31 Thread Chet Ramey
On 12/29/24 4:34 PM, Lawrence Velázquez wrote: I'm aware of the pitfalls described therein, and more. I don't think anyone thinks multiple evaluation in indexes is good per se, but many find the side effects of the attempted cures worse than the disease (e.g., https://mywiki.wooledge.org/BashPi

Re: [PATCH 9/9] doc/bash.1: Resync w/ lib/readline/doc/readline.3.

2024-12-31 Thread Chet Ramey
On 12/30/24 8:16 PM, G. Branden Robinson wrote: Hi Chet, At 2024-12-30T11:23:06-0500, Chet Ramey wrote: On 12/16/24 12:48 PM, G. Branden Robinson wrote: Favor man(7) font selection/alternation macros over roff(7) font selection escape sequences. In general, I don't do this when it makes the