From owner-freebsd-questions@FreeBSD.ORG Sat Dec 31 00:44:52 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 B34E9106566B for ; Sat, 31 Dec 2011 00:44:52 +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 7CDD28FC1A for ; Sat, 31 Dec 2011 00:44:52 +0000 (UTC) Received: by iadj38 with SMTP id j38so32993449iad.13 for ; Fri, 30 Dec 2011 16:44:52 -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:subject :content-type:content-transfer-encoding; bh=pw2hKqWmvRxpAEDLjWG28DP6yfu6Cv5eXLhh8NAa7n0=; b=lqE/DmVA/2TaRLayBRXm8boulVFkrSiGOO3AlUWb5/oDoNa9eS8/CofZkEXeNyFhR8 I4xvOYR/l9wODzm/0u/0iybPrvZRq4q37O0kjLR5XJnZv9dnywTX1e+1Y2cbZi/aV5ta RCPgCuRGOGAoFn1AXFCxfKH4+GPn2Q2rOJ6hs= Received: by 10.42.147.72 with SMTP id m8mr43479680icv.56.1325290851656; Fri, 30 Dec 2011 16:20:51 -0800 (PST) Received: from [192.168.1.2] ([174.134.109.226]) by mx.google.com with ESMTPS id h9sm133092884ibh.11.2011.12.30.16.20.50 (version=SSLv3 cipher=OTHER); Fri, 30 Dec 2011 16:20:51 -0800 (PST) Message-ID: <4EFE645B.8010906@gmail.com> Date: Fri, 30 Dec 2011 17:24:43 -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: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 00:44:52 -0000 Hello, Why the scape sequence; newline (\n) does not work in FreeBSD's bash, However, it works both in Linux and Solaris bash? For instance, when i type something basic using the newline scape sequence in FreeBSD bash i get this: $ FRUIT_BASKET="apple oranges pears" $ echo "My fruit basket contains:\n$FRUIT_BASKET" My fruit basket contains:\napple oranges pears the newline becomes part of stdout, but it works in linux and solaris; the output is shown in two separate lines. is there is setting i have to change in FreeBSD's shell init file so it will behave like linux and solaris bash shell or use just use "printf"?