Talk:Multiline shebang: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "Sorry for making so many articles. ScriptMain often requires ScriptName to check whether the current module is the one run directly from the terminal, and ScriptName often requir...")
 
(psql ask)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Anyone know a multiline shebang for PostgreSQL scripts to get around # being treated as a syntax error? --[[User:Mcandre]]
Sorry for making so many articles. ScriptMain often requires ScriptName to check whether the current module is the one run directly from the terminal, and ScriptName often requires MultilineShebangs because silly languages often omit the program from ARGV. --[[User:Mcandre]]

Sorry for making so many articles. [[ScriptedMain]] may require [[ScriptName]] to check whether the current module is the one run directly from the terminal, and [[ScriptName]] may require [[MultilineShebang]] because silly languages often omit the program name from ARGV. --[[User:Mcandre]]

== What is the task? ==

is the task to show how to shebang a script for the language? --[[User:Rdm|Rdm]] 17:46, 6 August 2011 (UTC)

: Seems that each example must be a [[polyglot]] in both that language and [[UNIX Shell]], and must have multiple lines of shell commands. I just now put an <nowiki>{{incorrect}}</nowiki> on 10 languages that use a #! plain shebang, because a #! plain shebang has only one line. --[[User:Kernigh|Kernigh]] 03:07, 7 August 2011 (UTC)

Latest revision as of 15:00, 18 July 2014

Anyone know a multiline shebang for PostgreSQL scripts to get around # being treated as a syntax error? --User:Mcandre

Sorry for making so many articles. ScriptedMain may require ScriptName to check whether the current module is the one run directly from the terminal, and ScriptName may require MultilineShebang because silly languages often omit the program name from ARGV. --User:Mcandre

What is the task?

is the task to show how to shebang a script for the language? --Rdm 17:46, 6 August 2011 (UTC)

Seems that each example must be a polyglot in both that language and UNIX Shell, and must have multiple lines of shell commands. I just now put an {{incorrect}} on 10 languages that use a #! plain shebang, because a #! plain shebang has only one line. --Kernigh 03:07, 7 August 2011 (UTC)