On Fri, 10 Feb 2012 10:22:20 -0500, Yanick Champoux
<yanick.champ...@gmail.com> wrote:

> On 02/10/12 09:56, Yanick Champoux wrote:
> >       which should be okay, but I'm suddenly thinking: on some shells
> > 'exit' might not do what we would expect. Indeed, I just tried:
> >
> > $ perl -E'say system "exit 1"'
> > -1
> 
>      And just to keep things interesting, I've noticed that I forgot the 
> ending semi-colon that is in the test. But surely that won't--
> 
> $ perl -E'say system "exit 1"; say system "exit 1;"'
> -1
> 256

% perl -E'say system "exit 1"; say system "exit 1;"'
-1
256

>      --make a difference...  Uuuh, okay, I need to brush up my shell 
> syntax skills.  And should probably look into making that test slightly 
> less shell-dependent.
> 
> Joy,
> `/anick


-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Reply via email to