Skip to content

Comparable return value of focus-tab #4376

Answered by kovidgoyal
tuxflo asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to check exit codes of a command in a shell script you do:

command
if [[ $? -ne 0 ]]; then ...

You are comparing the stdout of a command with zero.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tuxflo
Comment options

Answer selected by tuxflo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants