From owner-freebsd-hackers Sun Aug 29 22:22: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 51BEF151AC for ; Sun, 29 Aug 1999 22:22:00 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.02 #1) id 11LJsW-000IxL-00; Mon, 30 Aug 1999 07:21:12 +0200 From: Sheldon Hearn To: Leif Neland Cc: Doug , freebsd-hackers@FreeBSD.ORG Subject: Re: Please review: rc file changes In-reply-to: Your message of "Sun, 29 Aug 1999 12:40:20 +0200." Date: Mon, 30 Aug 1999 07:21:12 +0200 Message-ID: <72870.935990472@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 29 Aug 1999 12:40:20 +0200, Leif Neland wrote: > if isyes ${thisvariable} > > case $1 of > [Yy][Ee][Ss]) > exit 0 > ;; > *) > exit 1 > ;; > esac I hope you mean "in" instead of "of" and "return" instead of "exit". :-) I like this. One of the reasons I like it so much is because it will make Doug's changes more friendly towards a future migration to a new case-insensitive test(1) comparison (or even better, new case-handling sh(1) variable expansions) easier. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message