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

du -k gives incorrect result #2747

Closed
Dr-Irv opened this issue Dec 11, 2017 · 1 comment
Closed

du -k gives incorrect result #2747

Dr-Irv opened this issue Dec 11, 2017 · 1 comment

Comments

@Dr-Irv
Copy link

Dr-Irv commented Dec 11, 2017

  • Your Windows build number: 10.0.15063]

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)

(echo "s='a'*(1024*12)" ; echo "print s") | python > foo.out
ls -l foo.out ; du -k foo.out ; du -b foo.out

yields

-rwxrwxrwx 1 root root 12289 Dec 11 16:03 foo.out
8193    foo.out
12289   foo.out
  • What's wrong / what should be happening instead:
    The output should be (determined by using cygwin):
-rwxrwx---+ 1 (Omitted) 12289 Dec 11 16:03 foo.out
16      foo.out
12289   foo.out

So with the "-k" option, it is not computing the correct value of the number of kilobytes.

@therealkenc
Copy link
Collaborator

Well it was a good run. #2517, #2500, #2440, #2434, #2400, #2347, #2211, #1894. Fixed in 16237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants