Is multi-line assignment to eval possible ?

Manish Jain bourne.identity at hotmail.com
Wed Aug 9 01:45:57 UTC 2017



On 08/08/17 21:53, Ralf Mardorf via freebsd-questions wrote:
> https://stackoverflow.com/questions/17821277/how-to-separate-multiple-commands-passed-to-eval-in-bash

Thanks for the tip, Ralf.

I could get what I wanted with :

eval ${a}_${b}="\"\
line1
line2\""

echo "$A_B" gives me :

line1
line2

Thanks again


More information about the freebsd-questions mailing list