[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
[ID 20000121.005] System command starting with environment variable on HP-UX
Reply-To: dougw@safeguard.net
This is a bug report for perl from dougw@safeguard.net,
generated with the help of perlbug 1.26 running under perl 5.00503.
-----------------------------------------------------------------
A non zero status is returned from the
system() function when the supplied command
begins with an environment variable setting
where the environment variable contains an
underscore or a digit. such as:
system('tmp_junk=5 ls') and die "Error:$!";
or:
system('tmp_junk1=5 ls') and die "Error:$!";
Even though such a command will work from the command
line and return a successful status of zero e.g., the
following works on the command line (and outputs
the results from ls):
tmp_junk=5 ls
or:
sh -c "tmp_junk=5 ls"
-----------------------------------------------------------------
---
Site configuration information for perl 5.00503:
Configured by dougw at Fri Jan 21 08:43:13 PST 2000.
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=hpux, osvers=10.20, archname=PA-RISC1.1
uname='hp-ux mongo b.10.20 u 9000800 245239331 unlimited-user license '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize=' ', gccversion=
cppflags='-Ae -DDEBUGGING -I/usr/local/include'
ccflags ='-Ae -DDEBUGGING -I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
libs=-lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b -L/usr/local/lib'
Locally applied patches:
---
@INC for perl 5.00503:
/home/dougw/perl/lib/5.00503/PA-RISC1.1
/home/dougw/perl/lib/5.00503
/home/dougw/perl/lib/site_perl/5.005/PA-RISC1.1
/home/dougw/perl/lib/site_perl/5.005
.
---
Environment for perl 5.00503:
HOME=/home/dougw
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/dougw/bin:/home/dougw/perl/bin:/usr/bin:/opt/ansic/bin:/usr/ccs/b
in:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/
bin/X11:/opt/upgrade/bin:/opt/perf/bin:/opt/hpnp//bin:/opt/dtcmgr/sbin:/opt/
hparray/bin:/opt/rdtcmgr/sbin:/bin:/opt/langtools/bin:/opt/imake/bin:/opt/pr
ed/bin:/opt/ignite/bin:/opt/resmon/bin:/usr/bin:/usr/ccs/bin:/usr/contrib/bi
n:/opt/nettladm/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/bin:/opt/
hpnp/bin:/usr/local/bin:/opt/perl5/bin:/scope/cvs/cvsroot/bin:/opt/fourgen73
1/bin:/opt/informix730/bin:/scope/dev/all.4gm/lib.4gs:/scope/dev/scripts:.
PERL_BADLANG (unset)
SHELL=/usr/bin/sh
- Follow-Ups from:
-
Dominic Dunlop <domo@computer.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]