From owner-freebsd-questions Wed Oct 9 19:25:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96A1137B401 for ; Wed, 9 Oct 2002 19:25:32 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id D417C43E6E for ; Wed, 9 Oct 2002 19:25:30 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 16159 invoked from network); 10 Oct 2002 02:18:13 -0000 Received: from upnet-dialinpool-45.upnet.gr (HELO hades.hell.gr) (@150.140.128.209) by nic.upatras.gr with SMTP; 10 Oct 2002 02:18:13 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g9A2OGjP028982; Thu, 10 Oct 2002 05:24:16 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g9A2NbnF028810; Thu, 10 Oct 2002 05:23:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 10 Oct 2002 05:23:36 +0300 From: Giorgos Keramidas To: Peter Leftwich Cc: FreeBSD LIST Subject: Re: /etc/make.conf and AMD Athlon 600 Message-ID: <20021010022336.GH21391@hades.hell.gr> References: <20021008065146.GM81796@vectors.cx> <20021009214930.K36987-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021009214930.K36987-100000@earl-grey.cloud9.net> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-10-09 22:00, Peter Leftwich wrote: > On Mon, 7 Oct 2002, Adam Weinberger wrote: > > > I didn't have .../share/mk/ so I went out with google and downloaded > > > bsd.cpu.mk -- Wouldn't it be nice if "mv" had a flag to create directories > > > if they don't exist? Same with the command "touch." > > put this in your shell's rcfile: > > mvm() {mkdir -p `dirname $2` && mv $1 $2;} > > Doesn't it matter which shell I'm running? (tcsh) But the script looks > seriously cool, thanks! > > I just did some Google and AltaVista searches for mvm mvm() and mkdir and > unix... Didn't find anything. Which manpage concerns mvm?? You won't find any. It's a shell function, named mvm() by the poster of that message. Shell functions are one of the ways to create custom, elaborate 'aliases' of commands. The other two alternatives being the `alias' shell builtin (where it works) and writing shell scripts. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message