[Mono-osx] Calling ls with wildcards

Uli Hertlein uli at xdt.com.au
Wed Sep 14 09:13:51 EDT 2011


Hi Andrew,

On 09/14/2011 02:19 PM, Andrew Ayre wrote:
> ProcessStartInfo EnumProcessInfo = new ProcessStartInfo("ls", "/dev");
>...
>
> If I change the first line to the following then the result is empty:
>
> ProcessStartInfo EnumProcessInfo = new ProcessStartInfo("ls", "/dev/*");
>
> What am I doing wrong?

Wildcard expansion on Unix is done by the shell (bash, tcsh, etc), not the application.
You can run '/bin/sh ls /dev/*' instead.

HTH,
/uli

-- 
Ulrich Hertlein
Research and Development   mailto:uli at xdt.com.au
XDT Pty Ltd                http://www.xdt.com.au


More information about the Mono-osx mailing list