看板 FB_doc 關於我們 聯絡資訊
On Sun, Oct 29, 2006 at 08:18:50PM +0300, Andrew Pantyukhin wrote: > On 10/15/06, Yar Tikhiy <yar@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 _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"