Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2011 17:04:48 -0800
From:      =?windows-1251?B?y/7h7uzo8CDD8Ojj7vDu4g==?= <nm.knife@gmail.com>
To:        Edward Martinez <eam1edward@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: why newline scape sequence does not work in Freebsd's bash
Message-ID:  <CAHi1JsepvhJaHb%2B1zMssWiConxz9U75%2B8t8Pay2AH68mYrMjXg@mail.gmail.com>
In-Reply-To: <4EFE645B.8010906@gmail.com>
References:  <4EFE645B.8010906@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
try with the -e flag:

$ FRUIT_BASKET="apples oranges pears"
$ echo -e 'My fruit basket contains: \n $FRUIT_BASKET'
My fruit basket contains:
$FRUIT_BASKET


>Why  the scape sequence; newline (\n) does not work  in  FreeBSD's  bash,
 However, it works  both  in Linux and Solaris bash?


-- 
Lyubomir Grigorov (bgalakazam)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHi1JsepvhJaHb%2B1zMssWiConxz9U75%2B8t8Pay2AH68mYrMjXg>