Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Quoted parameter parsing glitch



On Aug 26,  9:59pm, Borsenkow Andrej wrote:
}
} Bart Schaefer wrote:
} > 
} > The question is whether "${foo:-"}"}" is valid.
} 
} No. Pairs of quotes and braces must match.

And is there no way to quote a brace within braces?

In any case, zsh accepts the above, nested like so:

    "           "
     ${        }
       foo:-" "
             }

I don't see any reason to change that in zsh, even if it's not accepted
under the POSIX rules, unless it conflicts with whatever means POSIX
provides for quoting the inner right brace.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author