3 ms·
I hate to nitpick, but from the man page of touch: > touch -- change file access and modification times If one were to argue side effects of touch, it wou
by RijilV 7y ago
I hate to nitpick, but from the man page of touch:
> touch -- change file access and modification times
If one were to argue side effects of touch, it would be that non-existent files are created. The purpose of touch is to update access and modification times.
- darkerside 7y agoI think you're misunderstanding the way the term side effect is being used in this context. A side effect can refer to any impacts on a system that happen outside of the scope of the code itself. In this case, the primary intended effect of "touch" is to initiate the side effect of modifying file access and modification times. https://en.m.wikipedia.org/wiki/Side_effect_(computer_science) https://en.m.wikipedia.org/wiki/Side_effect_(computer_scienc...