Anonymous user
Multiline shebang: Difference between revisions
no edit summary
No edit summary |
|||
Line 96:
exec clisp -q -q $0 $0 ${1+"$@"}
|#</lang>
=={{header|SQL PL}}==▼
{{works with|Db2 LUW}}▼
Based on the Postgres shebang, it works the same with IBM Db2. ▼
<lang sql>▼
--() { :; }; exec db2 -txf "$0"▼
get instance;▼
connect;▼
select 'Hello' from sysibm.sysdummy1;▼
values current date;▼
</lang>▼
The db2profile should be loaded before executing the 'db2' command (. ~db2inst1/sqllib/db2profile).▼
The options used in the example are: t - delimited by semi colon, x - Suppress printing of column headings, f - Read from input file. For other options, you can execute 'db2 ? options', and change the shebang.▼
=={{header|E}}==
Line 606 ⟶ 589:
=={{header|Smalltalk}}==
<lang smalltalk>"exec" "gst" "-f" "$0" "$0" "$@"</lang>
▲=={{header|SQL PL}}==
▲{{works with|Db2 LUW}}
▲Based on the Postgres shebang, it works the same with IBM Db2.
▲<lang sql>
▲--() { :; }; exec db2 -txf "$0"
▲get instance;
▲connect;
▲select 'Hello' from sysibm.sysdummy1;
▲values current date;
▲</lang>
▲The db2profile should be loaded before executing the 'db2' command (. ~db2inst1/sqllib/db2profile).
▲The options used in the example are: t - delimited by semi colon, x - Suppress printing of column headings, f - Read from input file. For other options, you can execute 'db2 ? options', and change the shebang.
=={{header|Tcl}}==
|