From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 13 03:20:42 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F8CE16A402 for ; Thu, 13 Apr 2006 03:20:42 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from mired.org (dsl092-153-074.wdc2.dsl.speakeasy.net [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id BA90B43D6E for ; Thu, 13 Apr 2006 03:20:36 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: (qmail 32743 invoked by uid 1001); 13 Apr 2006 03:20:36 -0000 Received: by localhost.mired.org (tmda-sendmail, from uid 1001); Wed, 12 Apr 2006 23:20:35 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17469.50051.423199.471854@bhuda.mired.org> Date: Wed, 12 Apr 2006 23:20:35 -0400 To: Patrick Tracanelli In-Reply-To: <443DA28D.2040503@freebsdbrasil.com.br> References: <20060412.154921.26277.710543@webmail06.nyc.untd.com> <20060412232226.GA33152@xor.obsecurity.org> <20060413004851.GA1194@dice.stsp.lan> <20060413005411.GA34686@xor.obsecurity.org> <443DA28D.2040503@freebsdbrasil.com.br> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org, Stefan Sperling , Kris Kennaway Subject: Re: Problems with FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 03:20:42 -0000 In <443DA28D.2040503@freebsdbrasil.com.br>, Patrick Tracanelli typed: > Kris Kennaway wrote: > > On Thu, Apr 13, 2006 at 02:48:51AM +0200, Stefan Sperling wrote: > >>On Wed, Apr 12, 2006 at 07:22:27PM -0400, Kris Kennaway wrote: > >>>On Wed, Apr 12, 2006 at 10:48:44PM +0000, gs_stoller@juno.com wrote: > >>>> I tried out FreeBSD 6.0 (sorry, I copied just part or > >>>> uname -a and I got something like "LINUX 2.4.2 FreeBSD 6.0 - > >>>>Release #0: Nov 3 09:36:13 UTC 2005 i686 i686 i386 GNU/LINUX") > >>> > >>>No you didn't, since no version of FreeBSD reports itself as LINUX > >>>from uname. > >>Unless uname is a Linux binary. > > FreeBSD doesn't ship uname as a Linux binary either :-) > Unless under Linux mode... Which would also explains the rest of the behavior the OP saw. He's getting bash instead of sh - because /bin/sh on Linux is bash. The two really odd behaviors - a list of files and a question about the number of possibilities - is bash file completion, which is triggered by the tab character. As for echo having standardized behavior, that's simply wishful thinking. SysV and BSD echo commands have different behaviors. POSIX is SysV. Various shells builtin echos have have flags and/or shell variables to control whether you get a variant of the SysV or BSD behavior, and different defaults. To get the behavior you want with the bash builtin echo, use: echo -e "a\tb" Better yet, consider using the printf command instead of echo. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.