From owner-freebsd-newbies Mon Jun 22 08:27:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA17494 for freebsd-newbies-outgoing; Mon, 22 Jun 1998 08:27:22 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA17489 for ; Mon, 22 Jun 1998 08:27:19 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id KAA11241; Mon, 22 Jun 1998 10:27:21 -0500 (CDT) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id KAA06471; Mon, 22 Jun 1998 10:26:48 -0500 Message-ID: <19980622102648.10321@right.PCS> Date: Mon, 22 Jun 1998 10:26:48 -0500 From: Jonathan Lemon To: Tim Gerchmez Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: Latest discoveries... References: <3.0.5.32.19980621125604.007f66c0@mx.serv.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <3.0.5.32.19980621125604.007f66c0@mx.serv.net>; from Tim Gerchmez on Jun 06, 1998 at 12:56:04PM -0700 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Jun 06, 1998 at 12:56:04PM -0700, Tim Gerchmez wrote: > Still need to know: How to use multiple commands in csh aliases. For > example, in .cshrc, there are alias lines letting you set up your own > commands. I haven't been able to figure out how to execute more than one > command at a time using an alias. I want to be able to format, label and > mount a floppy disk in one operation, but everything I've tried as far as > setting an alias like "dofloppy" that performs those three operations has > failed. I've had to break them up into separate aliases. Any clues from > csh experts out there? If not, I'll try freebsd-questions next. Do you mean something like: alias dofloppy 'fdformat fd0; disklabel -w fd0 fd1440; mount /dev/rfd0 /mnt' Although I don't really recommend that; if one of the commands errors, the next is executed anyway, which is probably not what you want. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message