Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 1998 10:26:48 -0500
From:      Jonathan Lemon <jlemon@americantv.com>
To:        Tim Gerchmez <fewtch@serv.net>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   Re: Latest discoveries...
Message-ID:  <19980622102648.10321@right.PCS>
In-Reply-To: <3.0.5.32.19980621125604.007f66c0@mx.serv.net>; from Tim Gerchmez on Jun 06, 1998 at 12:56:04PM -0700
References:  <3.0.5.32.19980621125604.007f66c0@mx.serv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980622102648.10321>