Skip to content
Scott C Gray edited this page Feb 26, 2017 · 2 revisions

Variable

fail_count - The total number of failed commands during the session

Description

Each jsqsh command that is executed, such as go (\go) returns a success or failure indicator that can be accessed via the ${rc} variable. This value is a number that indicates success (0) or failure (not-zero). Each time a command fails, the ${fail_count} session variable is automatically incremented. When jsqsh exits, the exit code is determined by adding together the value of ${fail_count} across all sessions that were executed within jsqsh. That is, if the total is 0, then jsqsh exits with 0, otherwise the exit code indicates the number of failures encountered during its execution.

See also

rc