[Mono-bugs] [Bug 645326] New: CsharpRepl (csharp(1)) doesn't recognize shebang

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 11 05:55:47 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=645326

https://bugzilla.novell.com/show_bug.cgi?id=645326#c0


           Summary: CsharpRepl (csharp(1)) doesn't recognize shebang
    Classification: Mono
           Product: Mono: Tools
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: takeshik at mild.ocn.ne.jp
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: No


Description of Problem:
CsharpRepl (csharp(1), http://www.mono-project.com/CsharpRepl) doesn't
recognize
shebang (#!) in the header of files.

Steps to reproduce the problem:
1. Create text file and write below code
#!/usr/bin/csharp
Console.WriteLine("foo");
2. Make executable the file
3. Run the file

Actual Results:
Outputs error:
{interactive}(1,18): error CS1024: Wrong preprocessor directive
{interactive}(2,0): error CS1024: Wrong preprocessor directive
{interactive}(2,0): error CS1024: Wrong preprocessor directive
{interactive}(2,0): error CS1024: Wrong preprocessor directive

Expected Results:
CsharpRepl should run as scripts, since chsarp is able to run the code to
pass the file which contains C# code and no shebang.
Shebang in top of the file should be ignored by csharp(1) itself.

How often does this happen? 
Always

Additional Information:
None

-- 
Configure bugmail: https://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.


More information about the mono-bugs mailing list