Re: 'declare -f|-F FUNCNAME' fails if FUNCNAME contains a '['

2017-10-24 Thread Chet Ramey
On 10/23/17 6:10 PM, oliver.phy...@gmail.com wrote:

> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
> 
> Description:
>   If a function FUNCNAME contains the '[' character, 'declare -F 
> FUNCNAME' and 'declare -f FUNCNAME'
>   fails:
>   bash: declare: `[': not a valid identifier
>   If called without argument FUNCNAME (to display all declared functions) 
> FUNCNAME is displayed
>   correctly.

Use `declare -fp' when you want to display function definitions to avoid
this.

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



Re: ctrl-w oddity on bash-4.4

2017-10-24 Thread Ángel
On 2017-10-22 at 21:08 -0500, Eduardo A. Bustamante López wrote:
> On Sun, Oct 22, 2017 at 06:52:12PM -0400, Aron Griffis wrote:
> > I'm seeing some strange behavior and don't know if it's a bug or intended.
> [...]
> > If this is intentional then I'd be curious about the rationale.
> 
> Please read:
> 
>  http://lists.gnu.org/archive/html/help-bash/2016-11/msg4.html
> 
> I believe this is the entry in the change log describing the change, although
> I'm unable to find Carlos' original report in the archives:
> 
> | lib/readline/vi_mode.c
> |- rl_vi_unix_word_rubout: new function, implements ^W as Posix 
> specifies
> |  it for vi mode, using whitespace and punctuation characters as word
> |  boundaries. Prompted by question from Carlos Pita
> |  
> 

Please note that this changelog entry and the execute_cmd.c aboce have
an 'o' too much in the email address (it should read "carlosjosepita").
He already appears another 5 times with the right email.

I would expect the question to have been raised approximately between
June and September 2016, but I too was unable to find those emails.
Maybe it was a direct mail, or reported on a different mailing list.

Best regards




Re: ctrl-w oddity on bash-4.4

2017-10-24 Thread Chet Ramey
On 10/22/17 10:08 PM, Eduardo A. Bustamante López wrote:

>  http://lists.gnu.org/archive/html/help-bash/2016-11/msg4.html
> 
> I believe this is the entry in the change log describing the change, although
> I'm unable to find Carlos' original report in the archives:
> 
> | lib/readline/vi_mode.c
> |- rl_vi_unix_word_rubout: new function, implements ^W as Posix 
> specifies
> |  it for vi mode, using whitespace and punctuation characters as word
> |  boundaries. Prompted by question from Carlos Pita
> |  

I haven't looked at this yet, but:

http://lists.gnu.org/archive/html/bug-readline/2016-02/threads.html

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