Bryan Ischo schrieb am 13.04.2012 um 10:05 (-0700):
> In my particular case, I have rules for creating directories
> on-demand, and those rules were difficult to work in a way that
> didn't sometimes 'mkdir' a directory that already existed.
Not a problem using mkdir -p :
$ mkdir -p a/b/c
$ mkdir -p a/b/c
$ mkdir -p a/b/c
On Windows:
$ if not exist a\b\c md a\b\c
$ if not exist a\b\c md a\b\c
$ if not exist a\b\c md a\b\c
> It was easier to just send the mkdir output to null and never worry
> about it.
Maybe less clean, but effectively the same thing.
--
Michael Ludwig
_______________________________________________
Help-make mailing list
Help-make@gnu....
https://lists.gnu.org/mailman/listinfo/help-make
opensubscriber is not affiliated with the authors of this message nor responsible for its content.