views:

106

answers:

1
+2  Q: 

Powershell vs UNIX

Greetings,

I would like to know if there is any equivalent Powershell commands for the following UNIX commands:

  1. make
  2. trap

Thanks.

A: 

Windows has nmake available, but I would recommend installing GNU Make from GNUWin32. Note both are just programs, not built-ins.

Powershell has its own variant of trap.

Matthew Flaschen
Thanks a lot for the quick reply.Is there any cmdlet in Powershell which has similar functionality like make? I would like to write a Powershell script which can build some packages.
shivashis
@shivashis - No there isn't anything built-in. However take a look at the PSake project if you're interested in make-like functionality (http://github.com/JamesKovacs/psake).
Keith Hill
I was reading about Powershell Trap and found we can trap different errors and exceptions, e.g. divide by zero, etc. How can we trap signals, e.g Ctrl + C or SIGHUP, etc? Is there an equivalent thing in powershell or these are UNIX specific only? Thanks
shivashis