From owner-freebsd-current Tue May 9 2:43:25 2000 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 2B83C37B6FC; Tue, 9 May 2000 02:43:20 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id TAA03652; Tue, 9 May 2000 19:43:03 +1000 Date: Tue, 9 May 2000 19:43:01 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Tim Vanderhoek Cc: "Jeroen C. van Gelderen" , "David O'Brien" , Jeroen Ruigrok van der Werven , current@FreeBSD.org Subject: Re: Small MAKEDEV bug In-Reply-To: <20000508191556.A47871@Hamilton-ppp44812.sympatico.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 8 May 2000, Tim Vanderhoek wrote: > On Mon, May 08, 2000 at 06:56:03PM -0400, Jeroen C. van Gelderen wrote: > > > > > > I don't buy it :-). This syntax is similar to a special case of the syntax > > > of jot(1). It's better to use jot(1) directly, e.g.: > > > > > > MAKEDEV $(jot -w da 2 0) # make 2 acd devices beginning at acd0 > > b$ which jot > /usr/bin/jot > b$ > > The jot utility doesn't appear to be in /bin. You can just type all the device names or use a shell loop when /usr/bin is not mounted. > b$ echo '$(jot -w da 2 0)' | wc > 1 5 17 > b$ echo $(jot -w da 2 0) | wc > 1 2 8 > b$ > > Heh. Yes, it is much faster to type all the device names than to even type the command to generate them when there are a small number of device names. > /me mumbles something about the prototypical UNIX hacker... :-) I wouldn't use jot for MAKEDEV'ing disks in practice :-). Part of my point is the new syntax for MAKEDEV is just as hard to remember as the syntax for jot. You would use it once or twice per millenium after install more than about 8 drives at once. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message