Re: RC1? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RC1?
Date
Msg-id 22802.1037204882@sss.pgh.pa.us
Whole thread Raw
In response to Re: RC1?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> "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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Propose RC1 for Friday ...
Next
From: cbbrowne@cbbrowne.com
Date:
Subject: Re: RC1?