From owner-freebsd-current Mon May 8 15:56:54 2000 Delivered-To: freebsd-current@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id 6637737C0FB; Mon, 8 May 2000 15:56:46 -0700 (PDT) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id E62A250; Mon, 8 May 2000 18:55:54 -0400 (AST) Message-ID: <39174603.3BBBD536@vangelderen.org> Date: Mon, 08 May 2000 18:56:03 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Evans Cc: David O'Brien , Jeroen Ruigrok van der Werven , current@FreeBSD.ORG Subject: Re: Small MAKEDEV bug References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > > On Mon, 8 May 2000, David O'Brien wrote: > > > On Sun, May 07, 2000 at 03:27:07PM -0400, Jeroen C. van Gelderen wrote: > > > Or just settle for a more intuitive solution: > > > MAKEDEV acd2 creates /dev/acd2 > > > MAKEDEV 2 acd creates /dev/acd[01] > > > which would allow for "MAKEDEV 64 da" and "MAKEDEV 256 pty" > > > > I agree with this syntax and after sending my message to you, was sitting > > there thinking "MAKEDEV " would make a really > > nice clear syntax. If you can get BDE's buy-in and other BSD > > traditionalists I think this would be great. > > 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 From this it follows that MAKEDEV should be modified to create just it's argument: MAKEDEV 8 creates just 8, not 0-7. Otherwise MAKEDEV $(jot -w da 6 4) wouldn't work or violate POLA. Agreed? Now it's a question of "the UNIX way" vs. convenience/userfriendlyness :-) Is it acceptable to have all users juggle with jot(1) or can we build in a convenience syntax that covers 95% of all uses? I'd think the latter, otherwise we might as well force our users to use mknod(8) and chmod(1) directly instead of MAKEDEV; After all, MAKEDEV is just a convenient wrapper around those commands. So I'd still propose: MAKEDEV MAKEDEV ... As a consolation, added such a special syntax can be added in a few lines at the top of MAKEDEV, after which it recursively calls MAKEDEV with the appropriate jot(1)-expanded device list. So it doesn't clobber the code. Thoughts? Cheers, Jeroen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message