einfachIrgendwer0815
einfachIrgendwer0815
Does the file contain any null bytes in the first 1024 bytes?
> I use `xxd` print the file. Does the last byte in the first line `00` means a null byte? Yes, it does. Bat considers files that have a null...
The test run on the MSRV toolchain runs `cargo test` without the `git` feature. Therefore, the style component `full` does not contain `changes`, so less space gets allocated to the...
Also related to #1032
This bug was introduced in commit e2bf85e749d87459e3fced697af5cd9cc96eeb8c (#2660). That commit added a mutual override of `--plain` and `--paging` by using the `.overrides_with` method on the respective `clap::Arg`s. Therefore, when specifying...
Although it still doesn't quite behave like `cat`, you could use: ```bash bat --show-all /proc/[pid]/cmdline ``` which will look something like this: ``` ───────┬──────────────────────────────────────────────────────────────────────── │ File: /proc/5877/cmdline ───────┼──────────────────────────────────────────────────────────────────────── 1 │...
> It looks like rust has expanded the max amount of memory that can fit inside a Vec since this was first reported (isn't this a Vec memory problem?). I...
`std::fs::metadata` follows symlinks. So, when the file is a real file, `std::fs::metadata` returns that file's metadata. But when the file is a symlink, `std::fs::metadata` returns the metadata of the file...
A different idea could be the following: When the length of a line exceeds a certain limit, all it's content gets discarded, but reading continues until the end of line....
> _if_ you choose to go the hard coding route, would it be possible to use `std::os::unix::fs::MetadataExt.rdev` to get the device number and check if it's `1:5` instead? That should...