[perl #30966] Windows PATH variable pieces can be in quotes
by Warren Dodge (via RT) other posts by this author
Aug 6 2004 4:34PM messages near this date
[perl #30968] perlbug does not send email properly
|
Re: [perl #30966] Windows PATH variable pieces can be in quotes
# New Ticket Created by Warren Dodge
# Please include the string: [perl #30966]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30966 >
This is a bug report for perl from warrend@[...].com,
generated with the help of perlbug 1.35 running under perl v5.8.4.
-----------------------------------------------------------------
[Please enter your report here]
I just encountered a problem in a script that parses
the PATH variable and checks to make sure each entry
has a directory.
It turns out that some program entered something like this
as a PATH entry. "C:\PATH\BIN"
The quotes were included. I tested this at a CMD prompt
and indeed it does work as expected. The quotes are shown in a
set path command.
It seems the -d operator in perl doesn't handle this properly
if ( -d "\"C:/temp\"" )
{
print "OK1\n";
}
else
{
print "BAD1\n";
}
if ( -d "C:/temp" )
{
print "OK2\n";
}
else
{
print "BAD2\n";
}
So I wanted to let you know so perhaps the low level stuff
could be enhanced.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=utilities
severity=low
---
Site configuration information for perl v5.8.4:
Configured by ActiveState at Tue Jun 1 11:52:09 2004.
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -
DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D
PERL_MSVCRT_READFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl584\lib
\CORE" -machine:x86'
libpth=C:\PROGRA~1\MICROS~3\VC98\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi3
2.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.li
b version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib adv
api32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winm
m.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"C:\
Perl584\lib\CORE" -machine:x86'
Locally applied patches:
ACTIVEPERL_LOCAL_PATCHES_ENTRY
22751 Update to Test.pm 1.25
21540 Fix backward-compatibility issues in if.pm
---
@INC for perl v5.8.4:
C:/Perl584/lib
C:/Perl584/site/lib
.
---
Environment for perl v5.8.4:
HOME=U: LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=C:\Perl584\bin\;j:\apps\perl561\bin;c:\oracle\ora92\bin;C:\Program Files\Oracle\jre
\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\System32\Wbem;c:\emacs-21.2\bin;C:
\Program Files\Microsoft SMS Installer\Installer Step-up Utility\Apps;C:\Program Files\Micro
soft SMS Installer\Installer Step-up Utility\Apps\Extensions;c:\cygwin\USR\X11R6;c:\cygwin\U
SR\X11R6\BIN;C:\WINNT\system32;C:\WINNT;C:\EDPM\java\jdk1.3.1_03\jre\bin\hotspot;C:\EDPM\bin
;J:\apps\edatools\psd\15.2a\tools\pcb\bin;J:\apps\edatools\psd\15.2a\tools\bin;J:\apps\edato
ols\psd\15.2a\tools\Capture;J:\apps\edatools\psd\15.2a\tools\fet\bin;J:\apps\edatools\psd\15
.2a\tools\specctra\bin;J:\apps\edatools\psd\15.2a\tools\libutil\bin;J:\apps\edatools\psd\15.
2a\tools\jre\bin;J:\apps\edatools\psd\15.2a\tools\pspice;J:\apps\edatools\fetools\psd152\bin
;J:\apps\edatools\cadtools\psd152\bin;"C:\temp"
PERL_BADLANG (unset)
SHELL (unset)
Thread:
Warren Dodge (via RT)
Dave Mitchell
|