An equivalent to OS X’s “open” in Cygwin

cygwin;

I know this may be a slightly strange question, plus the fact that I'm asking it here. The reason is that whenever I ask Windows-people about this, or even regular Cygwin-users, they don't seem to understand why I need this functionality.

For those of you who haven't used "open" in the shell in Mac OS X, it works like this:

$ open somepic.jpg

$ open SomeFile.m

So it looks at the default program associated with the file, and opens it. I'd like to do the same from within Cygwin. Any ideas would be highly appreciated!

Best Answer

$ cygstart theFile.ext

This will open theFile.ext with the default app you have set for .ext files.

Related Question