Date: Tue, 4 Jan 2005 20:13:02 +0100 From: Stefan Bethke <stb@lassitu.de> To: Christian Laursen <xi@borderworlds.dk> Cc: freebsd-stable@freebsd.org Subject: Re: MFC of src/bin/rmdir/rmdir.c Message-ID: <A7D16D5E-5E84-11D9-B067-000A95C893E4@lassitu.de> In-Reply-To: <86zmzpkpqk.fsf@borg.borderworlds.dk> References: <86zmzpkpqk.fsf@borg.borderworlds.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 04.01.2005 um 19:34 schrieb Christian Laursen: > We are starting to migrate stuff to FreeBSD 5 and one of my shell > scripts broke because rmdir -p doesn't work in 5.3. > > It would be really nice to have the fix from CURRENT merged to > RELENG_5 and possibly even RELENG_5_3 if possible. Appending /. to the path seems to work for me: $ find . . $ mkdir -p foo/bar/baz $ rmdir -p foo/bar/baz rmdir: foo/bar: Directory not empty $ find . . ./foo ./foo/bar ./foo/bar/baz $ rmdir -p foo/bar/baz/. $ find . . Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 170 346 0140
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7D16D5E-5E84-11D9-B067-000A95C893E4>