-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Replace wc
by stat
in gz
#1044
base: main
Are you sure you want to change the base?
Replace wc
by stat
in gz
#1044
Conversation
Thanks to your issue (#1042), I just found out that # GNU
stat -c '%s' file
# macOS/FreeBSD
stat -f '%z' file But a heads up, you should add the |
Thank you for the info! I'll try to make it cross-platform
That's also useful. I forgot about symlinks |
I'm getting an error stat -cL '%s' -- .bash_history
# prints this...
# stat: cannot statx '%s': No such file or directory @LucasLarson what am I doing wrong? |
wc
by stat
in gz
wc
by stat
in gz
, and add sizeof()
You want this: stat -Lc '%s' -- .bash_history because |
I forgot that flag-ordering matters in rare cases. Fixing now! |
Wait, I just noticed |
wc
by stat
in gz
, and add sizeof()
wc
by stat
in gz
You may want to keep the |
Silly me 😅. I forgot the |
Now it's ready (for real, haha) I've been busy, and thinking of many things yesterday. It seems my cognitive load was higher than I expected. I apologize (to everyone) for the little mistakes |
fixes #1042 . Only did 1 unit test, I haven't tested the whole fn