Re: bash should consult .config/bash/...

2023-12-09 Thread Lawrence Velázquez
On Sat, Dec 9, 2023, at 10:28 PM, Koichi Murase wrote: > 2023年12月10日(日) 12:10 jidanni : >> Maybe on the list of config files bash looks at, >> there should be also .config/bash/... as that is > > There was a discussion: > > https://lists.gnu.org/archive/html/bug-bash/2021-05/threads.html#00024 >

bash should consult .config/bash/...

2023-12-09 Thread jidanni
Maybe on the list of config files bash looks at, there should be also .config/bash/... as that is the trend these days...

Re: $((expr)) allows the hexadecimal constant "0x"

2023-12-09 Thread Koichi Murase
2023年12月10日(日) 14:13 Martin D Kealey : > But even if you still thought this was worth doing, it wasn't necessary to > make $((10#)) completely illegal: Bash could look ahead and only intervene > if the following character is '-' (affecting $((10#-digits)) but not > $((10#))). I'm not a big fan of

Re: $((expr)) allows the hexadecimal constant "0x"

2023-12-09 Thread Zachary Santer
On Thu, Nov 30, 2023 at 5:19 AM Martin D Kealey wrote: > > > This change will break scripts that use $((10#$somevar)) to cope with > > > somevar having leading zeroes OR BEING EMPTY. Beside the point, but I wanted to point out how easy this is to work around. $ number=0196 $ unset somevar $

Re: bash should consult .config/bash/...

2023-12-09 Thread Koichi Murase
2023年12月10日(日) 12:10 jidanni : > Maybe on the list of config files bash looks at, > there should be also .config/bash/... as that is There was a discussion: https://lists.gnu.org/archive/html/bug-bash/2021-05/threads.html#00024

Re: bash should consult .config/bash/...

2023-12-09 Thread Oğuz
On Sunday, December 10, 2023, jidanni wrote: > Maybe on the list of config files bash looks at, > there should be also .config/bash/... as that is > the trend these days... > Trends come and go. If there is demand for this feature bash should do it by honoring an environment variable like

Re: $((expr)) allows the hexadecimal constant "0x"

2023-12-09 Thread Martin D Kealey
On Sun, 10 Dec 2023, 12:15 Zachary Santer, wrote: > On Thu, Nov 30, 2023 at 5:19 AM Martin D Kealey > wrote: > > > > This change will break scripts that use $((10#$somevar)) to cope with > > > > somevar having leading zeroes OR BEING EMPTY. > Beside the point, but I wanted to point out how easy

Re: bash should consult .config/bash/...

2023-12-09 Thread Koichi Murase
2023年12月10日(日) 13:23 Oğuz : > Trends come and go. If there is demand for this feature bash should do it > by honoring an environment variable like BASH_HOME when looking for rc > files instead of exploring a fixed path. In that case, a question would be what would be the standard way to specify