dimo414 / bash-cache

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
GNU General Public License v3.0
73 stars 4 forks source link

ln -sfn is not atomic #26

Open dimo414 opened 3 years ago

dimo414 commented 3 years ago

According to this post ln -sfn isn't actually atomic, despite the comment here. Need to confirm this is actually broken and then fix, presumably to the rename approach described in the post.

dimo414 commented 3 years ago

bkt uses the rename pattern, for reference.

devkev commented 1 year ago

A recent comment on the same answer claims that the ln in modern coreutils does the atomic rename approach now.