dhcpcd-discuss

Re: [PMX:#] Re: nonstandard options missing from --dumplease in 6.10.1

Roy Marples

Sun Oct 22 19:53:02 2017

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

Follow-Ups:
Re: [PMX:#] Re: nonstandard options missing from --dumplease in 6.10.1Mike McCabe
References:
RE: [PMX:#] Re: nonstandard options missing from --dumplease in 6.10.1neal.p.murphy
Archive administrator: postmaster@marples.name