Re: Bash parameter transforamtion on empty array triggers unset variable.

2020-08-12 Thread Chet Ramey
On 8/11/20 11:45 AM, Andrew Neff wrote: > Ah, I see the confusion. > > The issue you pointed out, "@Q breaks set -o nounset" refers to quote > parameter expansion, as does the line in CHANGES-5.1, 1.q, which makes > sense to call this a bug that was allowed in bash 4.4 and 5.0. Not quite. The rep

Dashes in function names: Undocumented?

2020-08-12 Thread Matthew Persico
I put a bug report into an emacs group because the bash syntax highlighter failed to recognize functions whose names have dashes in them. The maintainer came back with this: I can reproduce this behaviour, but is it really a bug? Aren't the names with '-' invalid? The Bash Reference Manual says:

Re: Dashes in function names: Undocumented?

2020-08-12 Thread Eli Schwartz
On 8/12/20 10:51 AM, Matthew Persico wrote: > I put a bug report into an emacs group because the bash syntax highlighter > failed to recognize functions whose names have dashes in them. > > The maintainer came back with this: > > I can reproduce this behaviour, but is it really a bug? Aren't the

Re: [PATCH] fc: trim range instead of erroring out

2020-08-12 Thread Chet Ramey
On 8/11/20 11:59 AM, Martijn Dekker wrote: > This is different from every other shell, and also looks like it's contrary > to the POSIX spec: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/fc.html#tag_20_44_05 > > | When a range of commands is used, it shall not be an error to speci

Re: Dashes in function names: Undocumented?

2020-08-12 Thread Matthew Persico
On Wed, Aug 12, 2020 at 11:06 AM Eli Schwartz wrote: > On 8/12/20 10:51 AM, Matthew Persico wrote: > > I put a bug report into an emacs group because the bash syntax > highlighter > > failed to recognize functions whose names have dashes in them. > > > > The maintainer came back with this: > > >

Re: Dashes in function names: Undocumented?

2020-08-12 Thread Eli Schwartz
On 8/12/20 11:51 AM, Matthew Persico wrote: > Thanks. I will take your word for it, as I cannot seem to find that text at > https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html, unless > that is not the canonical location for the manual. The canonical location is surely the source code

Re: Dashes in function names: Undocumented?

2020-08-12 Thread Chet Ramey
On 8/12/20 12:01 PM, Eli Schwartz wrote: > On 8/12/20 11:51 AM, Matthew Persico wrote: >> Thanks. I will take your word for it, as I cannot seem to find that text at >> https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html, unless >> that is not the canonical location for the manual. >