From owner-freebsd-questions@FreeBSD.ORG Sun Apr 12 01:28:59 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 91A8C106564A for ; Sun, 12 Apr 2009 01:28:59 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 47EC58FC0C for ; Sun, 12 Apr 2009 01:28:59 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n3C1SwC3004508; Sat, 11 Apr 2009 19:28:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n3C1Swve004505; Sat, 11 Apr 2009 19:28:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 11 Apr 2009 19:28:58 -0600 (MDT) From: Warren Block To: Karl Vogel In-Reply-To: <20090411003758.D80D0BE71@kev.msw.wpafb.af.mil> Message-ID: References: <20090411003758.D80D0BE71@kev.msw.wpafb.af.mil> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (wonkity.com [127.0.0.1]); Sat, 11 Apr 2009 19:28:58 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: sorta newb help compiling samba X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2009 01:28:59 -0000 On Fri, 10 Apr 2009, Karl Vogel wrote: >>> 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' > } Some people recommend using printf instead. -Warren Block * Rapid City, South Dakota USA