-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to KE Liew on 7/4/2007 8:14 AM: > Rather than mkdir -P /path/to/wherever && touch /path/to/wherever/filename > It's nicer to have touch -P /path/to/wherever/filename
Thanks for the suggestion. However, it should be spelled -p, not -P. Care to submit a patch? Remember the documentation as well as the code. On the other hand, I'm not sure whether the primary maintainer, Jim, is willing to add new features - the problem with a new feature is that you cannot rely on it in portable scripts, and if the action can portably be done with existing tools (as you have just demonstrated), then we really need justification before bloating touch. I suppose you could argue that by doing the directory and file creation all within a single process that you can minimize the data races that would otherwise exist in between when the one process creates the directory and the other process then tries to create the file. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjBdx84KuGfSFAYARAnxxAJwOJkx2XWg24bem1ofZrVV3vVIrqACgp1AU A80Gn0pHXyZgRqknHvOylZw= =jkwr -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
