why newline scape sequence does not work in Freebsd's bash

Edward Martinez eam1edward at gmail.com
Sat Dec 31 01:43:53 UTC 2011


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.


More information about the freebsd-questions mailing list