kmk_redirect --version (return code: 0)
kmk_redirect - kBuild version 0.1.9998 (r2814) Copyright (C) 2007-2012 knut st. osmundsen
kmk_redirect --help (return code: 0)
usage: kmk_redirect [-[rwa+tb]<fd> <file>] [-c<fd>] [-Z] [-E <var=val>] [-C <dir>] [--wcc-brain-damage] [-v] -- <program> [args] or: kmk_redirect --help or: kmk_redirect --version The rwa+tb is like for fopen, if not specified it defaults to w+. The <fd> is either a number or an alias for the standard handles: i = stdin o = stdout e = stderr The -c switch will close the specified file descriptor. The -Z switch zaps the environment. The -E switch is for making changes to the environment in a putenv fashion. The -C switch is for changing the current directory. This takes immediate effect, so be careful where you put it. The --wcc-brain-damage switch is to work around wcc and wcc386 (Open Watcom) not following normal quoting conventions on Windows, OS/2, and DOS. The -v switch is for making the thing more verbose. This command was originally just a quick hack to avoid invoking the shell on Windows (cygwin) where forking is very expensive and has exhibited stability issues on SMP machines. It has since grown into something like /usr/bin/env on steroids.