tech-userlevel archive

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

Re: proposed /etc/rc.d/staticroute change to allow variables



On 18 October 2011 21:49, Alan Barrett <apb%cequrux.com@localhost> wrote:
> On Mon, 17 Oct 2011, David Brownlee wrote:
>>
>> Since ! has a well defined meaning in ifconfig.if, maybe use a '$' or
>> similar prefix to mean eval?
>
> '!' already means 'eval this line' in ifconfig.if.  It was my suggestion to
> have it mean more or less the same thing in route.conf.

Got it - makes perfect sense.

> I see now that /etc/rc.d/network eval's each '!' line from ifconfig.if in a
> separate subshell, whereas the proposal for /etc/rc.d/staticroute is to eval
> all linesin the same subshell (so that variables set in one line may affect
> commands in a subsequent line).  I think it would make more sense for both
> rc.d/network and rc.d/staticroute to perform all the evals in the same
> subshell.

Seems reasonable


Home | Main Index | Thread Index | Old Index