News for hackers. Stuff that matters.
Re:Software Engineering principles to make teams better by zomglings on Wednesday June 30, 2021 @03:10PM (#27692364)
Interestingly, `touch` is not idempotent because it modifies timestamps. Not being pedantic, just an interesting consideration. `mkdir -p` is idempotent, I believe.
Re:Software Engineering principles to make teams better by mytailorisrich on Wednesday June 30, 2021 @03:20PM (#27692465)
You're absolutely correct, it's not idempotent for the crucial reason you mention. It's crucial because updating the timestamps is the main purpose of 'touch' in the first place!