Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2011 17:06:20 -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:  <CAHi1JsdOu9oMGqL4fiOM7P0ExCXHA2q=r%2BzGeEihXojAffj2pA@mail.gmail.com>
In-Reply-To: <CAHi1JsepvhJaHb%2B1zMssWiConxz9U75%2B8t8Pay2AH68mYrMjXg@mail.gmail.com>
References:  <4EFE645B.8010906@gmail.com> <CAHi1JsepvhJaHb%2B1zMssWiConxz9U75%2B8t8Pay2AH68mYrMjXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I used ' singe quotes, so double quotes is:

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


=CD=E0 30 =E4=E5=EA=E5=EC=E2=F0=E8 2011, 17:04, =CB=FE=E1=EE=EC=E8=F0 =C3=
=F0=E8=E3=EE=F0=EE=E2 <nm.knife@gmail.com> =ED=E0=EF=E8=F1=E0:

> try with the -e flag:
>
> $ FRUIT_BASKET=3D"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)
>
>


--=20
Lyubomir Grigorov (bgalakazam)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHi1JsdOu9oMGqL4fiOM7P0ExCXHA2q=r%2BzGeEihXojAffj2pA>