-
Notifications
You must be signed in to change notification settings - Fork 123
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
rmate fails, when ls
gives filesize containing ,
#65
Comments
Thanks for reporting this issue. I have to admit, that i didn't test this on older systems for quite a while now, even though it was the original intent to target older systems. Will delve into this issue next year ;). |
I am not sure, if this has something todo with the version of ls, at least i was not able to dig anything up regarding gnu ls and this kind of numeric formatting. The closest thing i found was someone who defined an alias for ls in the form of
Thanks! |
$ type ls
ls is an alias for ls --color=yes -F
ls is /bin/ls |
Ah ... so the alias i found was overcomplicated. Your alias does this as well, if you list a directory by executing |
This should work now on your system, can you try it and give feedback? Thanks! |
Works! Thank you! |
My version of
ls
is outdated (can’t do anything about that…):rmate
in line 295 says:filesize=`ls -lLn "$realpath" | awk '{print $5}'`
The result with my version of
ls
is for example12,345
. Thenrmate
fails by displaying only the N bytes of the number before the,
– 12 in this example.I fixed this by adding the following line after 295:
filesize=$(echo "$filesize" | sed 's/,//')
The text was updated successfully, but these errors were encountered: