Thanks for taking the time to review my patch.
I agree with you that this change is not strictly required. It's more of a nice to have / ergonomic improvement to the existing touch interface.
Below is the help text for touch:
> Update the access and modification times of each FILE to the current time.
> A FILE argument that does not exist is created empty, unless -c or -h is supplied.
I was surprised to learn there was no existing flag that would allow directory creation when a file and its directories do not exist. Currently if directories do not exist, the command fails. I would go as far to argue that creating a file also implies creating any required directories, since directories must exist before we can create said file.
I also agree with David Hilton's recommendation that we should not change the default behavior of touch, like in my first patch, but rather add an opt-in flag for this behavior.
Thank you for reading my reply and I look forward to your future feedback.