Running command "kolibri" (no args) gives return status 0
See original GitHub issueObserved 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:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
rule number 23 of roadmaps: never mention the roadmap in code or documentation 😄
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.