From owner-freebsd-questions@FreeBSD.ORG Sat Apr 11 23:31:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A4CD106564A for ; Sat, 11 Apr 2009 23:31:01 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id E36A98FC08 for ; Sat, 11 Apr 2009 23:31:00 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n3BNV0qq031234 for ; Sat, 11 Apr 2009 19:31:00 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n3BNV0bW031233; Sat, 11 Apr 2009 19:31:00 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id D80D0BE71; Fri, 10 Apr 2009 20:37:58 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: <20090410214414.acc2dc6d.freebsd@edvax.de> (message from Polytropon on Fri, 10 Apr 2009 21:44:14 +0200) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20090411003758.D80D0BE71@kev.msw.wpafb.af.mil> Date: Fri, 10 Apr 2009 20:37:58 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: sorta newb help compiling samba X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 23:31:01 -0000 >> On Fri, 10 Apr 2009 21:44:14 +0200, >> Polytropon said: P> Why don't you use echo -n which suppresses the newline instead of involving P> another program to do something that echo can do on its own? This is how P> FreeBSD does it in its system scripts. Some of my scripts date back to 1994, and they've been run under FreeBSD, Linux, and Solaris using /bin/sh, ATT Korn shell, Solaris's version of the Korn shell (which is sure as hell *NOT* the same thing), pdksh, and bash. Unfortunately, "echo -n" hasn't behaved consistently, so I used the (pretty gross) hack # echo without newline necho () { echo "$*" | tr -d '\012' } P> And according to P> test -d /usr/bin || exit 0 # /usr not mounted P> Woudln't it be more compliant to exit 1 to signal an error due to /usr not P> being mounted? Probably. The only times I've ever tried to do anything without /usr mounted is when running single-user, so a message saying /usr/bin is missing wouldn't be a bad idea. -- Karl Vogel I don't speak for the USAF or my company The danger is not that one class is unfit to govern. All classes are unfit to govern. --Lord Acton