-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-zero error code upon regularly exit #33
Comments
Hi
Also, the same with When exiting But yes, the |
Hi, hopefully the concern was answered. Closing this issue. |
Hello @sayanarijit, I would agree that default behavior makes sense and is inline with fzf and other apps, however it can be useful to have a command for an exit with exit code 0 in addition to the default One example I can give you is I'm using nnn in a script that is reviewing installation files in a directory, so the script opens in a directory with several installation files, I will preview / edit them, review the contents, etc, and if I'm happy I'm closing nnn with exit code 0 and installation begins, otherwise I'm closing nnn with non-zero exit code and installation aborts. I guess I could just find a random regular file and press Enter for it, but it's just not nice 🙂 For this scenario, nnn added And +1 for removing |
Ah now with the use case, 0 exit without output seems valid. |
I think we can map 'q' to successfully quit without result and ctrl+c to terminate with error. |
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec) Fixes: #33
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec) Fixes: #33
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec) Fixes: #33
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec) Fixes: #33
Also remove cucumber-rust (will try https://github.com/rust-rspec/rspec) Fixes: #33
Hi,
just a small thing that I saw when playing around with it. When I exit xplr, it returns a non-zero error code, and writes
Error: terminated
into stderr. Guessing this is just a bug, because it would actually mess with scripting and piping, if you want to only continue the script if the error code is zero.So, to summarise:
Expected behavior:
Expected the error code for a regular exit (hitting q, ctrl-c, or esc) to be 0.
Actual behavior:
Error code is non-zero.
Additional info:
Fresh Arch-Linux
Freshly built the app from source through the AUR xplr-git package
The text was updated successfully, but these errors were encountered: