From owner-freebsd-questions@FreeBSD.ORG Sat Dec 31 01:43:53 2011 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 C4523106564A for ; Sat, 31 Dec 2011 01:43:53 +0000 (UTC) (envelope-from eam1edward@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 899E18FC0C for ; Sat, 31 Dec 2011 01:43:53 +0000 (UTC) Received: by iadj38 with SMTP id j38so33058237iad.13 for ; Fri, 30 Dec 2011 17:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=TUJaQk7vQKtPI5HlaH0d9jazu5tMfiAePJ9S1djUJWc=; b=gVYb6DgPSLqGTOMDN68yBk544NMLH9eiTl0pg1L+Dlt4CP1XXaD1J/U0SEhC85iS0C EfI0nkt4AqTSdIt+2R7/joXkEIHK2MXhXunc/LLFYLh9h8U4ypL25uT9qP8R7W+KfHyW T9S9Fr0Mtm/jCdMr3E1+VyNzCUhYnD8WsDSe8= Received: by 10.50.189.194 with SMTP id gk2mr48131052igc.0.1325295833143; Fri, 30 Dec 2011 17:43:53 -0800 (PST) Received: from [192.168.1.2] ([174.134.109.226]) by mx.google.com with ESMTPS id 36sm133852163ibc.6.2011.12.30.17.43.52 (version=SSLv3 cipher=OTHER); Fri, 30 Dec 2011 17:43:52 -0800 (PST) Message-ID: <4EFE77D1.3090402@gmail.com> Date: Fri, 30 Dec 2011 18:47:45 -0800 From: Edward Martinez User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: =?windows-1251?Q?=CB=FE=E1=EE=EC=E8=F0_=C3=F0=E8=E3=EE=F0=EE=E2?= References: <4EFE645B.8010906@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Questions Subject: Re: why newline scape sequence does not work in Freebsd's bash 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: Sat, 31 Dec 2011 01:43:53 -0000 On 12/30/11 17:06, Любомир Григоров wrote: > I used ' singe quotes, so double quotes is: > > $ FRUIT_BASKET="apples oranges pears" > $ echo -e "My fruit basket contains: \n $FRUIT_BASKET" > My fruit basket contains: > apples oranges pears Thanks for the help, it worked. I find it interesting that FreeBSD's echo man page does not mention the -e option is needed to enable backslash escapes. I remembered why it worked on linux is because i created an echo alias with the -e option. So i will do the same for FreeBSD.