This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Redirect the stderr GCC stream to file, executing from Ms-Dosshell
- To: gnu-win32 at cygnus dot com
- Subject: Re: Redirect the stderr GCC stream to file, executing from Ms-Dosshell
- From: cgf at bbc dot com (Chris Faylor)
- Date: Wed, 1 Oct 1997 15:17:27 GMT
- Organization: Boston Business Computing, Ltd.
- References: <01BCCE53.F7289290@gater.krystalbank.msk.ru>
- Reply-To: cgf at bbc dot com
In article <01BCCE53.F7289290@gater.krystalbank.msk.ru>,
Sergey Okhapkin <sos@prospect.com.ru> wrote:
>Chris Faylor wrote:
>> In article <199709301048.MAA00599@ammi.mclink.it>,
>> Giandomenico De Sanctis <mc4420@mclink.it> wrote:
>> >How to redirect the stderr stream to a file, running GCC from MS-Dos
>> >command prompt, and not from Unix-like shell as bash??
>>
>> gcc whatever 2>wherever
>
>This works with NT4.0 cmd.exe only, but not with 95's command.com.
Right. Sorry to have not mentioned that.
Other alternatives are:
1) Use 4DOS ( http://www.jpsoft.com ), which allows '>&' for redirection.
2) Write a small program to redirect stderr to stdout and run its
arguments.
3) bash -c 'exec gcc whatever 2>wherever'
--
http://www.bbc.com/ cgf@bbc.com "Strange how unreal
VMS=>UNIX Solutions Boston Business Computing the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".