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 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.

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.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index