Article ID: 000079043 Content Type: Troubleshooting Last Reviewed: 07/20/2016

Tcl Scripts Terminated by qexit Exits the Quartus Prime Software with a Return Code of 0 Regardless of the Argument to the Tcl qexit Call


  • Intel® Quartus® Prime Pro Edition
  • Intel® Quartus® Prime Standard Edition

    Critical Issue


    If you run an external, custom Tcl script that calls qexit [-return_code] with any Quartus® Prime executable (for example, quartus_sh) that supports the -t or --tcl_eval option and then examines the return code, the Quartus Prime software will exit with a return code of 0 regardless of the argument to qexit.

    This issue affects the Quartus Prime Standard Edition software and the Quartus Prime Pro Edition software.


    The following workarounds are available:

    • Instead of the qexit [-return_code] command, use the native exit [-return_code] Tcl command in your script. The exit command supports integer return codes from 0 to 127.
    • Because this issue does not affect the Quartus Prime interactive shell mode that you can enter with the -s option, you can source Tcl scripts that call qexit [-return_code] in the Quartus Prime interactive shell with the source <script_name> option. Sourcing Tcl scripts in the interactive shell allows the Quartus Prime software to exit with the specified return code. If you want to run the Quartus Prime software with a non-interactive external script, you can feed the source <script_name> command to the Quartus Prime interactive shell by redirecting to the Quartus Prime software\'s standard input.



    All postings and use of the content on this site are subject to Terms of Use.