> My suspicion falls on the very-recently-added awk calls. Try changing
>
> (echo "SET autocommit TO 'on';"; awk 'BEGIN {printf
> "\\set ECHO all\n"}'; cat "$inputdir/sql/$1.sql") |
Why use awk for this at all ? and not:
echo "\\set ECHO all"
??
Andreas