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

Любомир Григоров nm.knife at gmail.com
Sat Dec 31 01:06:21 UTC 2011


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


На 30 декември 2011, 17:04, Любомир Григоров <nm.knife at gmail.com> написа:

> 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)
>
>


-- 
Lyubomir Grigorov (bgalakazam)


More information about the freebsd-questions mailing list