I got some troubles when managing dialog output and exit codes. Essentially I\'m trying to get a one-line script for getting dialog selection and terminate script function:<