[Mono-bugs] [Bug 553829] csharp should be usable as a command interpreter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 10 12:59:24 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=553829

http://bugzilla.novell.com/show_bug.cgi?id=553829#c1


Amir Ebrahimi <amir at unity3d.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amir at unity3d.com

--- Comment #1 from Amir Ebrahimi <amir at unity3d.com> 2010-05-10 16:59:23 UTC ---
Here's a workaround in the meantime:

--- BEGIN csharp-shell ---
#!/bin/bash
WC=`wc -l < $1`
let "WC -= 1"
TEMP=$RANDOM.tmp
tail -n $WC $1 > $TEMP
csharp $TEMP
rm $TEMP
--- END csharp-shell ---


--- BEGIN test.sh ---
#!/usr/bin/env ./csharp-shell
System.Console.WriteLine("Hello World");
--- END test.sh ---

Place csharp-shell in /usr/bin or /usr/local/bin if you like.

-- 
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.


More information about the mono-bugs mailing list