Document csharp #! support
authorMiguel de Icaza <miguel@gnome.org>
Sun, 30 Jan 2011 16:40:59 +0000 (11:40 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 30 Jan 2011 16:40:59 +0000 (11:40 -0500)
man/csharp.1

index 2f6497d2e90474e334264bcca4b53b5460f0f465..e90aca38294aacca2a3d3cbbc92f19edb3afe7f8 100644 (file)
@@ -29,6 +29,16 @@ target process.
 .PP
 Files specified in the command line will be loaded and executed as
 scripts.
+.PP
+Starting with Mono 2.10, the 
+.I csharp
+command can be used as an interpreter executed by executables flagged
+with the Unix execute attribute.   To do this, make the first line of
+your C# source code look like this:
+.nf
+"#!/usr/bin/csharp" 
+Console.WriteLine ("Hello, World");
+.fi
 .SH OPTIONS
 .TP 
 .I "\-\-attach"