3 ms·
This is... beautiful. I wonder though, how different are the file edited with ed and the one edited with vi. Maybe ed fails to update the "date modified" under
by krick 7y ago
This is... beautiful.
I wonder though, how different are the file edited with ed and the one edited with vi. Maybe ed fails to update the "date modified" under these conditions?
- kjetijor 7y agoed might do truncate/write, and vim might do create/write/rename. New file, cache miss.
- alexlarsson 7y agoYeah, this is obviously a replace vs in-place modify difference. Could replace the script with a simple copy-to-temp+rename-back.
- cryptonector 7y agoOr not use ed(1).
- alexlarsson 7y agoPersonally I use magnets to flip bits around, ed(1) seems a bit to bloated for me.
- diegoperini 7y agoWho needs magnets when you have cosmic rays?
- raverbashing 7y agoYeah I feel the right way to solve this bug (in the compiler) would be to stat the file. Or maybe docker mounts it with -noatime (or something similar?)