The other day I realized that often when I'm using touch, I'd like it to have the ability to create ancestor directories that don't exist, a la mkdir -p. I quickly hacked together a shell script to do what I want.
Then I thought that this might be a generally useful extension to touch, so I thought I'd take a stab at adding it directly to the touch source code in GNU coreutils. Here's my patch, which I sent to the mailing list:





