Subject: | System::Command Not Setting Any Exit Code, -1 or Otherwise |
System::Command is not setting any exit code, not even -1. This could be a Mac OS X bug; if I get more information I'll let you know. I noticed because Git::Repository::Command was not die when Git should be return fatal exit codes, e.g. when trying to push to a remote that doesn't exist.
$ perl -e 'use System::Command; my $c = System::Command->new(q(false)); print $c->exit, qq(\n);'
$ perl -e 'use System::Command; my $c = System::Command->new(q(true)); print $c->exit, qq(\n);'
$ perl -e 'use System::Command; print $System::Command::VERSION, qq(\n);'
1.101
Subject: | perlv.txt |
Summary of my perl5 (revision 5 version 12 subversion 5) configuration:
Platform:
osname=darwin, osvers=12.4.0, archname=darwin-2level
uname='darwin x 12.4.0 darwin kernel version 12.4.0: wed may 1 17:57:12 pdt 2013; root:xnu-2050.24.15~1release_x86_64 x86_64 '
config_args='-de -Dprefix=/Users/nnutter/.perlbrew/perls/perl-5.12.5 -Aeval:scriptdir=/Users/nnutter/.perlbrew/perls/perl-5.12.5/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.27)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under darwin
Compiled at Jun 6 2013 21:51:49
%ENV:
PERL5LIB="/Users/nnutter/lib/perl5"
PERLBREW_BASHRC_VERSION="0.64"
PERLBREW_HOME="/Users/nnutter/.perlbrew"
PERLBREW_MANPATH="/Users/nnutter/.perlbrew/perls/perl-5.12.5/man"
PERLBREW_PATH="/Users/nnutter/.perlbrew/bin:/Users/nnutter/.perlbrew/perls/perl-5.12.5/bin"
PERLBREW_PERL="perl-5.12.5"
PERLBREW_ROOT="/Users/nnutter/.perlbrew"
PERLBREW_VERSION="0.64"
@INC:
/Users/nnutter/lib/perl5
/Users/nnutter/.perlbrew/perls/perl-5.12.5/lib/site_perl/5.12.5/darwin-2level
/Users/nnutter/.perlbrew/perls/perl-5.12.5/lib/site_perl/5.12.5
/Users/nnutter/.perlbrew/perls/perl-5.12.5/lib/5.12.5/darwin-2level
/Users/nnutter/.perlbrew/perls/perl-5.12.5/lib/5.12.5
.