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

The --long option is not reporting file sizes accurately #617

Closed
rbeyer opened this issue Jun 5, 2024 · 1 comment
Closed

The --long option is not reporting file sizes accurately #617

rbeyer opened this issue Jun 5, 2024 · 1 comment

Comments

@rbeyer
Copy link

rbeyer commented Jun 5, 2024

Description

The reported file size in colorls --long is different (maybe truncated) than what ls -lh reports, which could be misleading.

colorls version 1.4.6

  • Relevant Issues : (none)
  • Relevant PRs : (none)
  • Type of issue : Bug in existing feature

For example:

$> ls -l CUMINDEX.TAB
-rw-r--r--  1 rbeyer  staff  3163642328 Aug  8  2023 CUMINDEX.TAB

$> ls -lh CUMINDEX.TAB
-rw-r--r--  1 rbeyer  staff   2.9G Aug  8  2023 CUMINDEX.TAB

$> colorls --long CUMINDEX.TAB
   rw-r--r--   1   rbeyer   staff      2 GiB   Tue Aug  8 10:51:25 2023    CUMINDEX.TAB

colorls is reporting that this file is only 2 GiB, while ls is reporting 2.9 GB, which is almost a gigabyte different!

@avdv
Copy link
Collaborator

avdv commented Jun 30, 2024

Duplicate of #600

@avdv avdv marked this as a duplicate of #600 Jun 30, 2024
@avdv avdv closed this as completed Jun 30, 2024
@avdv avdv closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants