From owner-freebsd-ports Sat Feb 26 1:11: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 4462C37BFC4 for ; Sat, 26 Feb 2000 01:11:03 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id BAA22679; Sat, 26 Feb 2000 01:10:41 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38B79891.7FF10D10@gorean.org> Date: Sat, 26 Feb 2000 01:10:41 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: dbaker@distributed.net, ports@freebsd.org Subject: Minor tweak to the dnet startup script Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I recently installed the new dnet rc5, etc. port. I noticed that the startup script generates an "Unexpected operator" error at this line: if [ $email = "rc5@distributed.net" ]; then logger -i "dnetc client running with default email address. ($email)" fi Putting quotes around the "$email" eliminates the error. A better fix which takes advantage of the case builtin (as opposed to a call to test) is: case "$email" in rc5@distributed.net) logger -i "dnetc client running with default email address. ($email)" ;; esac FWIW, Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message