No reason to delete answers unless they are in extreme violation of the rules. Just because you don't think my answer is very good shouldn't warrant deletion or censorship.
Please undelete my answer: https://unix.stackexchange.com/a/625388/353848
Hi and thank you for bringing this to the Meta site.
You answered a question that asked about why a certain script could use
touch successfully to create a file, while another script seemed to not be able to use
touch in the same way to create the same file.
In my case we had a
touchbash alias function defined as
touch -a "$@"which was only updating the access time instead of (in addition to) the modification time.
touchwill update both of these times, but our bash function was overriding that.
Simply changing the function to
touch -am "$@"fixed the problem.
This, to me, although it's good that you solved an issue relating to
touch, does not answer the given question. It does not because the user in the question can show that a similar, stripped-down script can create a file. Also, the issue had nothing to do with timestamps but with actually creating a file. Their code additionally shows no function (or alias) overloading the
This is why I deleted it with the following comment:
This seems to be unrelated to the issue at hand. The current issue is regarding
touchseemingly not creating a particular file.
Now, if the answer remains deleted and you feel that you want to share your answer some other way, then I would suggest that you either
Writing a question to which you post a "self-answer" is a fully acceptable way to share your experience, assuming the question is not a duplicate of some already existing question.
After discussions back and forth amongst the moderators, we've decided to undelete the answer to let it instead go through the ordinary review queues. As it would be me flagging the answer, I will not personally be able to review it.
I still think the answer needs some updating to make it relevant to the question. In its current form, I would still prefer it to be attached to a more relevant question. My three points of action above are still very much relevant.