[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

echo+newline in postinst



Hi,

 I have to write a newline along with other things to a config file from
postinst. I was told and discovered that "echo -e '\nline'" is not
supported in every shell. What would be the best solution for this? I
think I should use "printf '\nline'" as it seems to work in every shell.
Is it ok, or should I use an other solution? Like
'(echo; echo line) >>config_file'?

Regards,
Laszlo/GCS



Reply to: