X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 525438 DOT 5969 DOT bm AT omp1017 DOT mail DOT ne1 DOT yahoo DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1343486783; bh=ekfSJkEAfTro/fIWzqhioxy2A6QhNaWR5DNJ2G8A23A=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Js9slS6ggc5sxgNGT8iYzhAbsxkgjHz3BqKxVSLWnHTLqrkL7ClPlzVF1epYggXrvCiWjvDnIqKS7MANvyiHjxl6SBJ3dwy5yscDE3QwN4kETVDy1/kSxYnyvjL7yTULVR8SV8SC30xAIThIFdPEMGrVjOxHysOXX32o9mJcY4g= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=0aBdbbf0IdqrwQM2sIo1gLEmKbK4bOkuSY7q2Q3noBO2JR0lFY99oNsvFEiEgwl61UMfvwbkm5Rg8fXkIT6SSKRIaG7+dZpA9jmdG9Xjwov/BqAXXQaLXyWIAuBzZjsz8eMrbIB1KRodAB89JXOpb8imWa0DFnXZpeVlbkCQwoE=; X-YMail-OSG: rkW4EoMVM1nYqjQBL4DqcAZp6UpI1tZ7TpsWIY4vwywxd5x xXvCWa4vBw3uKvOkETO4Z2dJw1OxLjXkX_fMZDDMrL0_xl3VwcLI7IfXo21j 0aFa50vwv.fKIioIC.GvnsT6UZ7nfZjjvt_CDqPNWbRen7KTVvyE4B4y4lVN Yr6FrjnrT54xxpEnxK5Xuxjr4BUGh1ZfWBvfPo_KeLYbfyoKkvC1ijzRnCMr Py8.UgLi2Fy3S4M16smgMGsshEl3JZAYehkkWp23nNO__FDWhSFdw16kLN1A L2hCo5efW8XPdb7Nxm37tzeHIr7woItVMx7WRnl.8QhEGowFGNCwbLoZAM54 XLo1Kk1XpMcpNBJsmBYmvSvyjazg4JCKGJKQZCcOyPCXvooHUVwdhHJxCbXe SoWMk_04r7EZFBctEwrAmwGs75vobWbMIMQA7Ym5w.ctpYUdJyUTIih1enfu tEf0KHVyeryM6U2LFoTClaTM9zCDZod2c.O7OCpM- X-Mailer: YahooMailWebService/0.8.120.356233 References: <20120709210244 DOT 60387819FB92 AT turkos DOT aspodata DOT se> <20120724143816 DOT E52AD81A00CD AT turkos DOT aspodata DOT se> <20120727171616 DOT CE83482827B2 AT turkos DOT aspodata DOT se> <1343412018 DOT 39401 DOT YahooMailNeo AT web120705 DOT mail DOT ne1 DOT yahoo DOT com> <20120727182142 DOT 7342182827C2 AT turkos DOT aspodata DOT se> <1343426416 DOT 17733 DOT YahooMailNeo AT web120703 DOT mail DOT ne1 DOT yahoo DOT com> <20120728091200 DOT 8588D82827D9 AT turkos DOT aspodata DOT se> <5013F795 DOT 8050908 AT ecosensory DOT com> Message-ID: <1343486783.57847.YahooMailNeo@web120702.mail.ne1.yahoo.com> Date: Sat, 28 Jul 2012 07:46:23 -0700 (PDT) From: Edward Comer Subject: [geda-user] PCB's return code wrong To: "geda-user AT delorie DOT com" In-Reply-To: <5013F795.8050908@ecosensory.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-985778932-135868090-1343486783=:57847" Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk ---985778932-135868090-1343486783=:57847 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I wrote a shell script that causes pcb to export gerbers and I wanted to te= st for success/failure but I find that pcb returns 0 even upon failure.=0A= =0AThis is a successful execution:=0A$ pcb -x gerber FI8904W-NoLed.pcb=0ALo= oking for default_font in .=0ACan't open ./default_font for reading=0ALooki= ng for default_font in /usr/bin/../share/pcb=0AFound default_font in /usr/b= in/../share/pcb=0A$ echo $?=0A0=0A=0AThis is a failure execution:=0A=0A$ pc= b -x gerber FI8904W-NoLed.xxx=0ALooking for default_font in .=0ACan't open = ./default_font for reading=0ALooking for default_font in /usr/bin/../share/= pcb=0AFound default_font in /usr/bin/../share/pcb=0ACan't open FI8904W-NoLe= d.xxx for reading=0A$ echo $?=0A0=0A$=A0=0A ---985778932-135868090-1343486783=:57847 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I wrote a shell script that cau= ses pcb to export gerbers and I wanted to test for success/failure but I fi= nd that pcb returns 0 even upon failure.

This is = a successful execution:
$ pcb -x gerber FI8904W-NoLed.pcb
Looking for default_font in .
Can't open ./default_font for re= ading
Looking for default_font in /usr/bin/../share/pcb
Found default_font in /usr/bin/../share/pcb
$ echo $?
= 0

This is a failure execution:
$ pcb= -x gerber FI8904W-NoLed.xxx
Looking for default_font in .
<= div>Can't open ./default_font for reading
Looking for default_font in /usr/bin/../share/pcb
Found default_font in /usr= /bin/../share/pcb
Can't open FI8904W-NoLed.xxx for reading
<= div>$ echo $?
0

<= /body> ---985778932-135868090-1343486783=:57847--