但是现在我们还是不能自行编写POSIX应用程序,也不能像在Unix中一样使用C Shell和Unix Perl,这些都是需要额外下载的。微软提供了Utilities and SDK for Subsystem for UNIX-based Applications,其中包含了一系列源于SVR-5和BSD的实用程序和命令,开发所需的头文件和库,以及一套Unix Perl(呃...ActivePerl的Windows版本和Linux版的Perl咱也有...咱都快变成Perl收藏家了...),还有Visual Studio调试插件(windows7的版本是for Visual Studio 2003/2005/2008的,不支持2010;Vista的版本不支持2008)。
现在在开始菜单中应该已经有Subsystem for UNIX-based Application子菜单了。展开它看看,一共有两个菜单项:Download Untilities for Subsystem for UNIX-based Applications和What’s new in Subsystem for UNIX-based Applications两项。Download Untilities for Subsystem for UNIX-based Applications就是指向Utilitiesand SDK for Subsystem for UNIX-based Applications下载页的链接——不过是Windows Server 2008和Windows Vista的版本-_-|||请使用What’s new in Subsystem for UNIX-based Applications首页上提供的链接(最终会指向http://www.microsoft.com/downloads/details.aspx?FamilyID=dc03485b-629b-49a6-b5ef-18617d1a9804&displaylang=en)下载基于Windows7和Windows Server 2008 R2的版本——不只是版本更新,体积也变得小多了,由450M左右下降到了250M左右(说起来Windows SDK的体积也由Windows Vista的1.5G下降到了700M左右了,挺厉害的啊...)
注意,启动Shell(我用的是C Shell)之后的当前目录好像是当前用户的目录...确实是UNIX的风格的说...可以输入cd /跳转到根目录下。输入ls -l看看~哈哈,充满UNIX风格的目录列表呈现在面前。不过,这些目录都是原原本本的Windows目录,而根目录其实就是你在安装Untility and SDK for SUA时选择的目录。正因如此,你会发现所有目录的owner竟然都是Windows的用户组:http://hiphotos.baidu.com/exp/pic/item/373bc4b457fbf3258bd4b2ca.jpg