New article

Yar Tikhiy yar at comp.chem.msu.su
Thu Nov 16 20:46:02 UTC 2006


On Sun, Oct 29, 2006 at 08:18:50PM +0300, Andrew Pantyukhin wrote:
> On 10/15/06, Yar Tikhiy <yar at comp.chem.msu.su> wrote:
> >Hi folks,
> 
> Great article, thanks!

Thank you!

> How about
> -eval "${rcvar}=\${${rcvar}:-'NO'}"
> +eval : \${${rcvar}='NO'}
> (a little more concise/readable; does not override
> explicit null value, which might not be valid, but
> should probably be respected all the same)

The former expression agrees better with the current style of rc.subr
and rc.d; in particular, null and unset values are treated the same.

-- 
Yar



More information about the freebsd-doc mailing list