9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ar exit code?
@ 2004-03-09 10:12 David Tolpin
  2004-03-09 12:32 ` boyd, rounin
  0 siblings, 1 reply; 4+ messages in thread
From: David Tolpin @ 2004-03-09 10:12 UTC (permalink / raw)
  To: 9fans


If ar is to create a new archive, but failed because of duplicate symbols,
it exists with success; mk continues and it is hard to notice untill too
late.

Is it as it was intended?

David


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ar exit code?
  2004-03-09 10:12 [9fans] ar exit code? David Tolpin
@ 2004-03-09 12:32 ` boyd, rounin
  2004-03-09 12:43   ` C H Forsyth
  0 siblings, 1 reply; 4+ messages in thread
From: boyd, rounin @ 2004-03-09 12:32 UTC (permalink / raw)
  To: 9fans

> If ar is to create a new archive, but failed because of duplicate symbols,
> it exists with success; mk continues and it is hard to notice untill too
> late.
> 
> Is it as it was intended?

mk differs from make in that the whole block of commands
is sent to rc, rather than forking a shell for each command.

that might be the problem.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ar exit code?
  2004-03-09 12:32 ` boyd, rounin
@ 2004-03-09 12:43   ` C H Forsyth
  2004-03-09 13:07     ` boyd, rounin
  0 siblings, 1 reply; 4+ messages in thread
From: C H Forsyth @ 2004-03-09 12:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

no, ar itself doesn't exit with error status if dupfound
stops it from updating the archive.  easy to fix, and it
seems the right thing to me to change it.

[-- Attachment #2: Type: message/rfc822, Size: 2246 bytes --]

From: "boyd, rounin" <boyd@insultant.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] ar exit code?
Date: Tue, 9 Mar 2004 13:32:04 +0100
Message-ID: <05b901c405d2$88b4ae30$67844051@SOMA>

> If ar is to create a new archive, but failed because of duplicate symbols,
> it exists with success; mk continues and it is hard to notice untill too
> late.
> 
> Is it as it was intended?

mk differs from make in that the whole block of commands
is sent to rc, rather than forking a shell for each command.

that might be the problem.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] ar exit code?
  2004-03-09 12:43   ` C H Forsyth
@ 2004-03-09 13:07     ` boyd, rounin
  0 siblings, 0 replies; 4+ messages in thread
From: boyd, rounin @ 2004-03-09 13:07 UTC (permalink / raw)
  To: 9fans

> no, ar itself doesn't exit with error status if dupfound
> stops it from updating the archive.  easy to fix, and it
> seems the right thing to me to change it.

yup



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-09 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 10:12 [9fans] ar exit code? David Tolpin
2004-03-09 12:32 ` boyd, rounin
2004-03-09 12:43   ` C H Forsyth
2004-03-09 13:07     ` boyd, rounin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).