question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running command "kolibri" (no args) gives return status 0

See original GitHub issue

Observed behavior

Edit: Original issue removed. Running “kolibri” and getting no output was due to the “auto_cd” option on ZSH being switched on implicitly by an Oh My ZSH plugin.

Only remaining issue now is that non-0 return code is potentially a bad idea in case kolibri is invoked with its arguments truncated by mistake.

Expected behavior

Status code 1 and usage instructions.

User-facing consequences

~Not being able to figure out whether to use --help help or -h or man kolibri etc.~

Errors and logs

n/a

Steps to reproduce

Run kolibri

Context

Current develop branch

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
indirectlylitcommented, Sep 7, 2019

rule number 23 of roadmaps: never mention the roadmap in code or documentation 😄

0reactions
benjaomingcommented, Sep 12, 2019

I have some bug in my shell, writing “kolibri” issues a “cd kolibri”. Probably Something with ZSH or Oh My ZSH. Edit: Here is the problem https://unix.stackexchange.com/questions/126719/how-to-disable-auto-cd-in-zsh-with-oh-my-zsh

The only issue here would be the return code being zero.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return exit code 0 from a failed command
Simply append return 0 to the function to force a function to always exit successful. function a() { ls aaaaa 2>&1 return 0...
Read more >
Exit status of ansible-playbook not as documented #19720
The exit codes from the ansible-playbook command with an unreachable host is not as reported in man ansible-playbook ( 4 instead of 3...
Read more >
Bash command line exit codes demystified | Enable Sysadmin
The exit code of 0 means that the ls command ran without issue. Although, again, the information from exit code provides no real...
Read more >
Chapter 6. Exit and Exit Status
Every command returns an exit status (sometimes referred to as a return status or exit code). A successful command returns a 0, while...
Read more >
Kolibri Documentation - Read the Docs
Kolibri server runs as a background process and sends (serves) content ... Click Yes to confirm, or No to exit without deleting the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found