On 2/4/19 11:48 AM, Grisha Levit wrote:
> On Sun, Jan 27, 2019 at 6:15 PM Chet Ramey <chet.ra...@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.

Probably. There are several ways to do this, but the implementation works
better if I use strpbrk instead of strcspn. (It's incomplete as it stands
now.) Thanks.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to