> "Zeugswetter Andreas SB SD" <[EMAIL PROTECTED]> 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 should use 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 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]