Re: [Mono-list] Running a shell builtin from mono

2013-02-08 Thread Mathias Tausig
On Friday 08. February 2013 10:45:32 Ulrich Hertlein wrote: Hi Mathias, On Fri, Feb 8, 2013 at 2:10 AM, Mathias Tausig mathias.tausig@a- cert.atwrote: On Thursday 07. February 2013 12:05:32 Ian Norton wrote: On Thu, Feb 07, 2013 at 11:08:22AM +, Mathias Tausig wrote: Hy!

Re: [Mono-list] Running a shell builtin from mono

2013-02-08 Thread Jonathan Pryor
On Feb 8, 2013, at 5:39 AM, Mathias Tausig mathias.tau...@a-cert.at wrote: Does it? I didn't know that. I assumed it uses the same shell that mono is running in. You're assuming that Mono was started from a shell. This need not be the case (e.g. started directly as user's login shell or as

[Mono-list] Running a shell builtin from mono

2013-02-07 Thread Mathias Tausig
Hy! I want to execute a shell builtin command from mono on a linux box. (To be precise: I want to read the current umask with the 'umask' command). Using the Process class doesn't work, since it looks for an actual command file to run. Is there a way to do this? cheers Mathias

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Ian Norton
On Thu, Feb 07, 2013 at 11:08:22AM +, Mathias Tausig wrote: Hy! I want to execute a shell builtin command from mono on a linux box. (To be precise: I want to read the current umask with the 'umask' command). Using the Process class doesn't work, since it looks for an actual command

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Ulrich Hertlein
Hi, On 07.02.2013, at 23:05, Ian Norton ian.norton-bad...@thales-esecurity.com wrote: On Thu, Feb 07, 2013 at 11:08:22AM +, Mathias Tausig wrote: I want to execute a shell builtin command from mono on a linux box. (To be precise: I want to read the current umask with the 'umask'

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Jonathan Pryor
On Feb 7, 2013, at 8:27 AM, Ulrich Hertlein u.hertl...@gmail.com wrote: Any particular reason why you don't just call the POSIX syscall directly, w/o exec a shell? Which is bound as Syscall.umask():

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Mathias Tausig
On Thursday 07. February 2013 12:05:32 Ian Norton wrote: On Thu, Feb 07, 2013 at 11:08:22AM +, Mathias Tausig wrote: Hy! I want to execute a shell builtin command from mono on a linux box. (To be precise: I want to read the current umask with the 'umask' command). Using the Process

Re: [Mono-list] Running a shell builtin from mono

2013-02-07 Thread Ulrich Hertlein
Hi Mathias, On Fri, Feb 8, 2013 at 2:10 AM, Mathias Tausig mathias.tau...@a-cert.atwrote: On Thursday 07. February 2013 12:05:32 Ian Norton wrote: On Thu, Feb 07, 2013 at 11:08:22AM +, Mathias Tausig wrote: Hy! I want to execute a shell builtin command from mono on a linux box.