[PATCH] merge-one-file: remove empty directories

Linus Torvalds torvalds at osdl.org
Mon Nov 21 04:17:38 EST 2005



On Sat, 19 Nov 2005, Junio C Hamano wrote:
> 
> [jc: We probably could use "rmdir -p", but for now we do that by
> hand for portability.]

Some googling seems to imply that "-p" is pretty much globally available.

It's in POSIX.1, but more importantly, it seems to actually be actively 
used in BSD projects, and I found a man-page with copyright date in -92 
(SCO of all places) which mentiones AT&T SVID2 - but not the more modern 
standards.

Even VMS seems to have it (although if git is ever ported to VMS, I'll 
just have to shoot myself. I used VMS in -88, and the scars are _still_ 
fresh).

			Linus



More information about the Linuxppc64-dev mailing list