Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2011 18:47:45 -0800
From:      Edward Martinez <eam1edward@gmail.com>
To:        =?windows-1251?Q?=CB=FE=E1=EE=EC=E8=F0_=C3=F0=E8=E3=EE=F0=EE=E2?= <nm.knife@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: why newline scape sequence does not work in Freebsd's bash
Message-ID:  <4EFE77D1.3090402@gmail.com>
In-Reply-To: <CAHi1JsdOu9oMGqL4fiOM7P0ExCXHA2q=r%2BzGeEihXojAffj2pA@mail.gmail.com>
References:  <4EFE645B.8010906@gmail.com>	<CAHi1JsepvhJaHb%2B1zMssWiConxz9U75%2B8t8Pay2AH68mYrMjXg@mail.gmail.com> <CAHi1JsdOu9oMGqL4fiOM7P0ExCXHA2q=r%2BzGeEihXojAffj2pA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EFE77D1.3090402>