-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
Awaiting ReleaseIssue is fixed, but not available in a published releaseIssue is fixed, but not available in a published releaseBugSomething isn't workingSomething isn't working
Description
Description
jless
currently returns 0 (success) as an exit code, even if the command failed (e.g. if the input wasn't valid JSON). To reproduce:
jless - <<<"This is no JSON"; echo $?
will result the following output:
Unable to parse input: "Parse error"
0
Impact / use-case
Having a non-zero exit code increases interoperability and allows for fallbacks in scripts, e.g. jless "$@" || less "$@"
Metadata
Metadata
Assignees
Labels
Awaiting ReleaseIssue is fixed, but not available in a published releaseIssue is fixed, but not available in a published releaseBugSomething isn't workingSomething isn't working