Skip to content
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

Error messages should be output to stderr #877

Closed
lewisdiamond opened this issue Jun 22, 2018 · 0 comments
Closed

Error messages should be output to stderr #877

lewisdiamond opened this issue Jun 22, 2018 · 0 comments
Assignees
Labels
feature Enhancements and new features

Comments

@lewisdiamond
Copy link

Summary

gopass list -f blah

(red)Entry 'blah' not found

gopass list blah 2>/dev/null

(red)Entry 'blah' not found

Expected behavior

gopass list blah 2>/dev/null

(EMPTY)

Environment

Linux

  • gopass Version: 1.8.0
flokli added a commit to flokli/nixpkgs that referenced this issue Jun 22, 2018
gopass tries to write a version number to it's configuaration, even when
just generating the shell completion scripts. This fails, as
/homeless-shelter is read-only inside the sandbox.
As error messages are printed to stdout instead of stderr
(see gopasspw/gopass#877), the error message
lands inside the completion script, thus breaking it.

Workaround that by setting GOPASS_CONFIG to `/dev/null`
xeji pushed a commit to NixOS/nixpkgs that referenced this issue Jun 24, 2018
gopass tries to write a version number to it's configuaration, even when
just generating the shell completion scripts. This fails, as
/homeless-shelter is read-only inside the sandbox.
As error messages are printed to stdout instead of stderr
(see gopasspw/gopass#877), the error message
lands inside the completion script, thus breaking it.

Workaround that by setting GOPASS_CONFIG to `/dev/null`
@dominikschulz dominikschulz self-assigned this Jun 28, 2018
@dominikschulz dominikschulz added the feature Enhancements and new features label Jun 28, 2018
@dominikschulz dominikschulz added this to the 1.8.2 Bugfix release milestone Jun 28, 2018
dominikschulz added a commit to dominikschulz/gopass that referenced this issue Jun 28, 2018
dominikschulz added a commit to dominikschulz/gopass that referenced this issue Jun 28, 2018
Fixes gopasspw#877

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz added a commit to dominikschulz/gopass that referenced this issue Jun 28, 2018
Fixes gopasspw#877

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
dominikschulz added a commit that referenced this issue Jun 28, 2018
Fixes #877

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
kpitt pushed a commit to kpitt/gopass that referenced this issue Jul 21, 2022
Fixes gopasspw#877

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Enhancements and new features
Projects
None yet
Development

No branches or pull requests

2 participants