#59 make redirection error detection

closed
nobody
None
2001-07-25
2001-07-25
Tim Scott
No

When I redirect output from a command to a file, the
error status somehow gets lost and make doesn't see
it. Here's a simple example of a makefile exhibiting
the behavior:

a:
xyzzy

b:
xyzzy > b.txt

Where xyzzy is a non-existent executable.

For the first target, a, make correctly detects an
error and displays it:

"make (e=2): The system cannot find the file specified.
C:\MAKE\MAKE.EXE: *** [a] Error 2"

In the second target, b, make doesn't detect any error
because of the redirection.

--tim

Discussion

  • Tim Scott

    Tim Scott - 2001-07-25

    Simple make file exhibiting problem

     
  • Tim Scott

    Tim Scott - 2001-07-25
    • labels: 103947 -->
     
  • Tim Scott

    Tim Scott - 2001-07-25

    Logged In: YES
    user_id=280811

    After discovering "redir.exe", I realize that it is a flaw
    with the command.com shell.

    --tim

     
  • Tim Scott

    Tim Scott - 2001-07-25
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks