Portfile question (actually, tcl question)

Piet van Oostrum piet-l at vanoostrum.org
Sat Sep 21 21:17:08 UTC 2019


Gerben Wierda <gerben.wierda at rna.nl> 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 <piet-l at vanoostrum.org>
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]


More information about the macports-users mailing list