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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to