From owner-cvs-all Tue Jan 11 13: 2: 9 2000 Delivered-To: cvs-all@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 495BD14E99; Tue, 11 Jan 2000 13:02:05 -0800 (PST) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id NAA25463; Tue, 11 Jan 2000 13:01:51 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200001112101.NAA25463@gndrsh.dnsmgr.net> Subject: Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c In-Reply-To: <26517.947620979@zippy.cdrom.com> from "Jordan K. Hubbard" at "Jan 11, 2000 12:02:59 pm" To: jkh@zippy.cdrom.com (Jordan K. Hubbard) Date: Tue, 11 Jan 2000 13:01:51 -0800 (PST) Cc: asmodai@bart.nl (Jeroen Ruigrok van der Werven), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > I installed a number of ports and when I wanted to upgrade I just cd'd > > into /var/db/pkg and pkg_delete'd the appropriate port. Note ^^^^^^^^^^^ not /var/db/pkg/pkg_name_im_about_to_delete > > Hahahaha. That's pretty funny, and yes, that would certainly do it. > I forget that people do things as silly as this sometimes. > > Think about it, Jeroen. You're in a directory which is about to be > wiped out by the act of package deleting the package, a directory > there is *absolutely no need* to cd into first unless you get your ^^^^^^^^^^^^^^^^^^ There may be no need, but there is a great speed advantage to cd'ing to /var/db/pkg and running pkg_delete from there. It's called filename completion. I do this all the time. And no, it won't trigger the ``We aren't in Kansas anymore'' message. > kicks from yanking out the rug you're standing on. :-) It really bugged me when this started to happen in unix: gndrsh:rgrimes {149}% cd /tmp gndrsh:rgrimes {150}% mkdir r gndrsh:rgrimes {151}% cd r gndrsh:rgrimes {152}% rmdir . rmdir: .: Invalid argument gndrsh:rgrimes {153}% (cd ..; rmdir r) gndrsh:rgrimes {154}% pwd pwd: .: No such file or directory The restriction on rmdir . is totally bogus stupid crap, as you can see it is easy to get around this bug :-) -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message