Re: Enhancement to psql command, feedback.
Steven Lembark <lembark@wrkhors.com>
From: Steven Lembark <lembark@wrkhors.com>
To: pgsql-general@lists.postgresql.org
Cc: lembark@wrkhors.com
Date: 2018-05-10T14:46:40Z
Lists: pgsql-general
The whole point of "#!" working in shell is that the two-bytes (a) mark the file as executable by a specific shell command and (b) are a shell comment. One fairly simple fix that would make annotating here scripts and the like simpler for shell(ish) execution would be simply ignoring all text from "\n#" to the first "\n", which would allow the #! to function as a comment -- just as it does in the shell. Another way to do it would be adding a '#' command to psql, similar to '\', that accepts a one-line directive and ignores it entirely. This would use the existing framework for detecting the context of '\' as a command, just with a different magic char. -- Steven Lembark 1505 National Ave Workhorse Computing Rockford, IL 61103 lembark@wrkhors.com +1 888 359 3508