ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49366] Differences between system.getenv and Ant 1.8.1 <property env=""/>
Date Thu, 10 Jun 2010 07:39:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49366

--- Comment #3 from Gilles Scokart <gscokart@gmail.com> 2010-06-10 03:39:00 EDT ---
I got an other difference when launched from cygwin :
A PROMPT variable is not returned anymore in 1.8.2.

----
Detected OS_NAME: windows xp
Detected OS_ARCH: x86
Detected OS_VERSION: 5.1
Detected Java Version: 1.5.0_17
Detected Java Vendor: Sun Microsystems Inc.
Detected Java VM Version: 1.5.0_17-b04
Detected Java VM Name: Java HotSpot(TM) Client VM

Only in 1.8.1: PROMPT=$P$G
----

>From windows on the same machine:
----
Detected OS_NAME: windows xp
Detected OS_ARCH: x86
Detected OS_VERSION: 5.1
Detected Java Version: 1.5.0_17
Detected Java Vendor: Sun Microsystems Inc.
Detected Java VM Version: 1.5.0_17-b04
Detected Java VM Name: Java HotSpot(TM) Client VM

Only in 1.8.2: =C:=C:\Documents and Settings\gscokart
Only in 1.8.2: =D:=D:\temp
Only in 1.8.2: =ExitCode=00000000
----




I tested also from cygwin using the ibm jvm 1.5 and the sun jvm 1.6 and got the
same result than with the sun jvm 1.5:
----
Detected OS_NAME: windows xp
Detected OS_ARCH: x86
Detected OS_VERSION: 5.1 build 2600 service pack 2
Detected Java Version: 1.5.0
Detected Java Vendor: IBM Corporation
Detected Java VM Version: 2.3
Detected Java VM Name: IBM J9 VM

Only in 1.8.1: PROMPT=$P$G
----
Detected OS_NAME: windows xp
Detected OS_ARCH: x86
Detected OS_VERSION: 5.1
Detected Java Version: 1.6.0_12
Detected Java Vendor: Sun Microsystems Inc.
Detected Java VM Version: 11.2-b01
Detected Java VM Name: Java HotSpot(TM) Client VM

Only in 1.8.1: PROMPT=$P$G
----



My cygwin version is, and I have no PROMPT env variable.  I have PS1 and PS2
(not sure if they are linked):
---
$ uname
CYGWIN_NT-5.1
$ env | grep PROMPT

$ echo $PS1
\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$

$ echo $PS2
>
---


On Windows however I have a PROMPT variable:
---
D:\temp>echo %PROMPT%
$P$G
---

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message