Re: [PMX:#] Re: nonstandard options missing from --dumplease in 6.10.1
Mike McCabe
Sun Oct 22 21:49:20 2017
I read dumplease output and expect it to be shell-parseable...
> On Oct 22, 2017, at 12:53 PM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
>> On 22/10/2017 18:11, neal.p.murphy wrote:
>> I don't recall any shell allowing a - in var names. But then, I could be thinking C.
>
> No shell does.
> Because the hooks are shell scripts, this still makes sense.
> However, I could use env(1) to export the environment, but then variables would not be quoted correctly for shells.
>
> With set
> classless_static_routes='0.0.0.0/0 10.73.2.1'
>
> With env
> classless_static_routes=0.0.0.0/0 10.73.2.1
>
> env doesn't care about how shell variables are called so it will export pretty much what it's given. All env cares about is the =
>
> This might break applications which dump leases to file and expect them to be shell parseable, so I probably won't make that change.
>
> Roy
>
Archive administrator: postmaster@marples.name