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
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.
You answer:
In my case we had a
touch
bash alias function defined astouch -a "$@"
which was only updating the access time instead of (in addition to) the modification time.By default
touch
will 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 touch
utility.
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
touch
seemingly 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.
Update:
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.
bash
questions and zsh
answers, with grep
questions and awk
answers. It's my understanding that Kusalananda took the time to understand the question and your answer and made the determination that your answer didn't apply to the question. I haven't invested the same amount of time, but I respect both of you for listening to the other's points of view.
A moderator has deleted this post and it cannot be undeleted
not even high rep users can vote to undelete, this is anti-open web behavior.touch
to do with the question. If answers were generally allowed to be that loosely connected with questions, then the site would gradually become utterly useless. You're totally free to update the answer so that it is in line with the question, and I'll undelete it immediately.