tech-userlevel archive

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

Re: Deferring variable parse errors in /bin/sh



On Mon, Jun 12, 2017 at 08:48:34AM +0700, Robert Elz wrote:
> However, we could do what I see that FreeBSD has done (and when I saw it,
> I wondered why) and defer the error message until the expansion actually
> happens, rather than when it is parsed (provided we can find some way to
> parse the thing, which would be possible here, and in most cases.)

I agree with this approach since I wouldn't be surprised if there are
shell scripts using array syntax in some bash-only branches.

Joerg


Home | Main Index | Thread Index | Old Index