bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `complete -p -- <cmd>` doesn't yield reusable input when "-F" is ass


From: Grisha Levit
Subject: Re: `complete -p -- <cmd>` doesn't yield reusable input when "-F" is assigned an invalid identifier
Date: Mon, 4 Feb 2019 11:48:44 -0500

On Sun, Jan 27, 2019 at 6:15 PM Chet Ramey <chet.ramey@case.edu> wrote:
> the function name argument to -F can't contain any shell metacharacters

Should the change [1] to make this happen have strpbrk() instead of
strcspn()?  It seems to have the opposite of the intended effect as
is.

[1] 
https://git.savannah.gnu.org/cgit/bash.git/diff/builtins/complete.def?h=devel&id=ca5d21091bb80ac41dc4bf7c9361c217b00b0b81



reply via email to

[Prev in Thread] Current Thread [Next in Thread]