bug-bash
[Top][All Lists]
Advanced

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

Re: Unsetting all elements of an associative array


From: Chet Ramey
Subject: Re: Unsetting all elements of an associative array
Date: Wed, 04 Feb 2015 16:24:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 2/4/15 10:27 AM, Piotr Grzybowski wrote:
>  I think you are right, maybe this one should be considered:
> 
> diff --git a/lib/sh/shquote.c b/lib/sh/shquote.c
> index fff4f81..de05f27 100644
> --- a/lib/sh/shquote.c
> +++ b/lib/sh/shquote.c
> @@ -293,7 +293,7 @@ sh_contains_shell_metas (string)
>         case '(': case ')': case '<': case '>':
>         case '!': case '{': case '}':           /* reserved words */
>         case '*': case '[': case '?': case ']': /* globbing chars */
> -       case '^':
> +       case '^': case '@':
>         case '$': case '`':                     /* expansion chars */
>           return (1);
>         case '~':                               /* tilde expansion */
> 
>  what do you think?

It's a two-line fix, but that's the wrong place.

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

Attachment: print-assoc-assignment.patch
Description: Source code patch


reply via email to

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