Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[bat error]: 'conf.d' is a directory. is written to STDOUT instead of STDERR #2561

Copy link
Copy link

Description

@JanPokorny
Issue body actions

What steps will reproduce the bug?

  1. Invoke bat on a directory and redirect stderr, e.g. bat /bin 2>/dev/null

What happens?

bat outputs to the terminal: [bat error]: '/bin' is a directory.

What did you expect to happen instead?

The STDERR should be redirected to /dev/null, thus no error output should be visible. Looks like bat writes that error to STDOUT instead. Other errors (like when the file does not exist) get written to STDERR, though.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.