Skip to content

Still having issues with filenames starting with "cache" #584

@rotty

Description

@rotty

Using current master (4ee0b2e), there still seems to be an issue that looks like #557:

% cargo run -- cache.c
    Finished dev [unoptimized + debuginfo] target(s) in 0.13s
     Running `target/debug/bat cache.c`
error: The subcommand 'cache.c' wasn't recognized
	Did you mean 'cache'?

If you believe you received this message in error, try re-running with 'bat -- cache.c'

USAGE:
    bat [OPTIONS] [FILE]...
    bat <SUBCOMMAND>

For more information try --help

Giving -- doesn't give a workaround:

% ./target/debug/bat -- cache.c
error: The subcommand 'cache.c' wasn't recognized
	Did you mean 'cache'?
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions