Re: Portfile question (actually, tcl question)

2019-09-21 Thread Piet van Oostrum
Gerben Wierda writes: > set startupitemstring [variant_isset "withdnsserver" ? "port load > dns-server\n\t" : ""] Try this one: set startupitemstring [expr [variant_isset withdnsserver] ? {"port load dns-server\n\t"} : {""}] -- Piet van Oostrum WWW: http://piet.vanoostrum.org/ PGP key:

Re: Portfile question (actually, tcl question)

2019-09-20 Thread Ryan Schmidt
On Sep 20, 2019, at 15:42, Gerben Wierda wrote: > On 20 Sep 2019, at 18:29, Dr M J Carter wrote: > >> On Fri, Sep 20, 2019 at 05:33:02PM +0200, Gerben Wierda wrote: >>> I’m new to tcl, so maybe this is simple, but I haven’t been able to solve >>> it. >>> >>> startupitem.start

Re: Portfile question (actually, tcl question)

2019-09-20 Thread Gerben Wierda
> On 20 Sep 2019, at 18:29, Dr M J Carter > wrote: > > On Fri, Sep 20, 2019 at 05:33:02PM +0200, Gerben Wierda wrote: >> I’m new to tcl, so maybe this is simple, but I haven’t been able to solve >> it. >> >> startupitem.start "[variant_isset "withdnsserver"] ? "port load >>