> "Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
>> Why use awk for this at all ? and not:
>> echo "\\set ECHO all"
Actually, some googling revealed the following advice (in the Autoconf
manual):
Because of these problems, do not pass a string containing arbitrary characters to echo. For example, echo
"$foo"is safe if you know that foo's value cannot contain backslashes and cannot start with -, but otherwise you
shoulduse a here-document like this:
cat <<EOF $foo EOF
This seems obviously safer, so I shall make it do that instead
of relying on either awk or echo.
regards, tom lane