http://bugzilla.novell.com/show_bug.cgi?id=553829
Summary: csharp should be usable as a command interpreter
Classification: Mono
Product: Mono: Compilers
Version: SVN
Platform: x86-64
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
It would be nice if 'csharp' could be used to write scripts, so that we could
write executable script files:
#!/usr/bin/env csharp
Console.WriteLine ("Hello, world!");
Alas, this fails:
{interactive}(1,22): error CS1024: Wrong preprocessor directive
So the only way to write a script is to write *two* scripts, the actual script
(above, minus the #!/usr/bin/env line) and a "helper" script:
#!/bin/sh
csharp < the-real-script-to-execute
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs