Unexpected line number at BASH_LINENO[i]

2022-07-07 Thread Michal Berger
BASH_VERSION: 5.1.4(1)-release (shipped with Debian 11) Considering script like this: 1 #!/usr/bin/env bash 2 3 set -o errexit 4 set -o errtrace 5 6 bt() { 7 local line file file_v 8 9 for ((idx = 1; idx < ${#FUNCNAME[@]}; idx++)); do 10

Re: Alias appends space character to end of non-latin string

2022-07-07 Thread Chet Ramey
On 7/1/22 4:07 AM, Vangelis Natsios wrote: Bash Version: 5.0 Patch Level: 17 Release Status: release Description: When creating an alias containing a path ending with a non-latin (e.g. greek) directory name, a space character is appended to the end of the path, causing the alias to fail. This

Re: Man page section for complete's -C option is inconsistent

2022-07-07 Thread Chet Ramey
On 7/6/22 7:37 PM, Mark Chandler wrote: As it stands the explanation of the -C option by itself is misleading. It doesn't mention the parameter passing at all. But it implies that all you need is a command that outputs possible completions. Particularly when you can see the following option -F

Re: $(( )): binary/unary VAR/NUM inconsistency

2022-07-07 Thread Chet Ramey
On 7/6/22 1:10 PM, Steffen Nurpmeso wrote: Hello. 'Struggling with a Dijkstra two stack parser i am thankful to be able to compare against bash that uses a completely different and correct parser! I stumbled upon this (bash 5.1.16); i find it "understandable" in respect to clarity, but inconsis

Re: $(( )): binary/unary VAR/NUM inconsistency

2022-07-07 Thread Steffen Nurpmeso
Hello! Chet Ramey wrote in <1d592238-69c5-88b6-6e08-5d56e3170...@case.edu>: |On 7/6/22 1:10 PM, Steffen Nurpmeso wrote: ... |> I stumbled upon this (bash 5.1.16); i find it "understandable" in |> respect to clarity, but inconsistent, and also in hindsight to the ... |Thanks for the report.