[Bug 18712] New: cmd: "if defined ... " command crashes.