Hello,

 

Question about strings and string substitution. Why does option 1 yield different output from option 2 (see below). I am using 1.9.14 on Win 7 64bit

 

hansel:

 

#option 1

s = "1\n2\n3\n"

printf "@s"

 

#option 2

printf "1\n2\n3\n"

 

OUTPUT:

 

gretl version 1.9.14

Current session: 2014-04-22 23:49

#option 1

? s = "1\n2\n3\n"

Replaced string s

? printf "@s"

1\n2\n3\n

 

#option 2

? printf "1\n2\n3\n"

1

2

3

 

Thanks,

 

Logan