public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* env command went berserk; variables named *PATH*; PATH_SEP character
@ 2000-06-02 11:57 Tolkin, Steve
  0 siblings, 0 replies; only message in thread
From: Tolkin, Steve @ 2000-06-02 11:57 UTC (permalink / raw)
  To: cygwin

The env command produced bizarre output.
It seems to look at all environment variables with PATH in the name

Also, the path separator character in CLASSPATH is still semicolon as in
DOS,
rather than colon, as I would expect it to be.
The path_sep character is "automagically" translated from ; to : for the
PATH variable. 
If I had another "standard" Unix *PATH variable, e.g. LD_LIBRARY_PATH or
MANPATH
would these also have been changed?

What is the env command doing?

Look at the output below.  This is on Cygwin 1.1.0.
It looks like it might be badly confused by blanks inside directory
names in $PATH, see below.
In addtion some of these strings seem to come from my CLASSPATH
environment variable, e.g. \java\jcvsii.jar
Does it look at all the variables with PATH in their name?

And why are all the file extensions for executable files there?
Indeed it looks like they come from the DOS environment variable named
PATHEXT.

503~> env 
!C:=C:WINNT: not found
!J:=J:!M:=M:!P:=P:!S:=S:!Z:=Z:BALISE_HOME=C:Program: not found
c:javacoltcolt.jar: not found
c:javaHPjmeter.jar: not found
c:javaPerfAnal.jar: not found
C:Program: not found
C:Program: not found
c:javajcvsii.jar: not found
FilesMicrosoft: not found
C:Program: not found
C:Program: not found
FilesMicrosoft: not found
C:Program: not found
FilesMicrosoft: not found
./env: files/javasoft/JRE/1.2/bin:/program: not found
.EXE: not found
.BAT: not found
.CMD: not found
.VBS: not found
.JS: not found
.PL: not found
.VBE: not found
.JSE: not found
.WSF: not found
.WSH: not found
C:cygnuscygwin-b20H-i586-cygwin32bin: not found
c:jdk1.2.2bin: not found
c:program: not found
c:program: not found
D:taxplancodetaxplan1debug: not found
C:Program: not found
C:Program: not found
C:Program: not found
C:Program: not found
C:Program: not found
C:Tax: not found
C:Tax: not found
C:Tax: not found
Family: not found
$: not found
504~>

507~> type env
env is hashed (./env)

508~> echo $PATH
.:/usr/bin:/usr/local/bin:/Perl/bin/:/usr/bin:/usr/bin:/Perl/bin:/WINNT/syst
em32
:/WINNT:/informix/bin:/_mybin:/_otherbin:/usr/bin:/emacs/bin:/WINNT/system32
/nls
/ENGLISH:/WINNT/system32/nls:/usr/home/mybin:/Perl/bin:/usr/bin:/jdk1.2.2/bi
n:/p
rogram files/javasoft/JRE/1.2/bin:/program
files/winzip:/cygdrive/d/taxplan/code
/taxplan1/debug:/Program Files/Microsoft Visual
Studio/Common/Tools/WinNT:/Progr
am Files/Microsoft Visual Studio/Common/MSDev98/Bin:/Program Files/Microsoft
Vis
ual Studio/Common/Tools:/Program Files/Microsoft Visual
Studio/VC98/bin:/Program
 Files/Inso/balise:/Tax Lot Accounting/tuxedo/bin:/Tax Lot
Accounting/pb:/Tax Lo
t Accounting/exe:/cygdrive/z/:.:/jdk1.2.2/bin
509~>


C:\>echo $CLASSPATH
.;c:\java\colt\colt.jar;c:\java\HPjmeter.jar;c:\java\PerfAnal.jar;C:\Program
Fil
es\Exceed.nt\hcljrcsv.jar;C:\Program
Files\Exceed.nt\;c:\java\activation.jar;c:\
java\jcvsii.jar


From a DOS box, all the variables with PATH in their name:
C:\>env |grep PATH
CLASSPATH=.;c:\java\colt\colt.jar;c:\java\HPjmeter.jar;c:\java\PerfAnal.jar;
C:\P
rogram Files\Exceed.nt\hcljrcsv.jar;C:\Program
Files\Exceed.nt\;c:\java\activati
on.jar;c:\java\jcvsii.jar
HOMEPATH=\users\default
OS2LIBPATH=C:\WINNT\system32\os2\dll;
PATH=/Perl/bin/:/usr/bin:/usr/bin:/Perl/bin:/WINNT/system32:/WINNT:/informix
/bin
:/_mybin:/_otherbin:/usr/bin:/emacs/bin:/WINNT/system32/nls/ENGLISH:/WINNT/s
yste
m32/nls:/usr/home/mybin:/Perl/bin:/usr/bin:/jdk1.2.2/bin:/program
files/javasoft
/JRE/1.2/bin:/program
files/winzip:/cygdrive/d/taxplan/code/taxplan1/debug:/Prog
ram Files/Microsoft Visual Studio/Common/Tools/WinNT:/Program
Files/Microsoft Vi
sual Studio/Common/MSDev98/Bin:/Program Files/Microsoft Visual
Studio/Common/Too
ls:/Program Files/Microsoft Visual Studio/VC98/bin:/Program
Files/Inso/balise:/T
ax Lot Accounting/tuxedo/bin:/Tax Lot Accounting/pb:/Tax Lot
Accounting/exe:/cyg
drive/z/:.:/jdk1.2.2/bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.PL;.VBE;.JSE;.WSF;.WSH
PATH_KEEP=C:\Perl\bin;C:\cygnus\cygwin-b20

 
Hopefully helpfully yours,
Steve
-- 
Steven Tolkin          steve.tolkin@fmr.com      617-563-0516 
Fidelity Investments   82 Devonshire St. R24D    Boston MA 02109
There is nothing so practical as a good theory.  Comments are by me, 
not Fidelity Investments, its subsidiaries or affiliates.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-02 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-02 11:57 env command went berserk; variables named *PATH*; PATH_SEP character Tolkin, Steve

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).