DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4911>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4911 exec arguments convert single quote (apos) to full quote ------- Additional Comments From [EMAIL PROTECTED] 2002-03-18 19:55 ------- Back again... Ok I tried what you suggested on Windows 2000 Pro running cygwin of course. It does not work exactly. I continue try all forms of doing awk single quotes and all I get is double. ------------- Begin Ant Target ----------------- <!-- =============== HOST ADDRESS ================ --> <exec os="HP-UX,SunOS,Linux" executable="nslookup" output=".host.address"> <arg line="${host.name}" /> </exec> <exec os="Windows NT,Windows 2000" executable="ipconfig" output=".host.address"/> <condition property="awkspot" value="6"> <or> <equals arg1="${os.name}" arg2="Windows NT" /> <equals arg1="${os.name}" arg2="Windows 2000" /> <equals arg1="${os.name}" arg2="HP-UX" /> </or> </condition> <condition property="awkspot" value="5"> <or> <equals arg1="${os.name}" arg2="SunOS" /> <equals arg1="${os.name}" arg2="Linux" /> </or> </condition> <exec executable="awk" outputproperty="host.address"> <arg value="NR == ${awkspot} { print $$NF }"/> <arg value=".host.address"/> </exec> <delete file=".host.address"/> ------------- End Ant Target ----------------- Here is my debug output: --------------- Begin debug --------------- configure-install-prepare: [exec] Current OS is Windows 2000 [exec] id -gn [exec] Output redirected to ByteArray Execute:Java13CommandLauncher: id -gn Setting project property: user.group -> Administrators [exec] Current OS is Windows 2000 [exec] This OS, Windows 2000 was not found in the specified list of valid OSes: SunOS [exec] Current OS is Windows 2000 [exec] hostname [exec] Output redirected to ByteArray Execute:Java13CommandLauncher: hostname Setting project property: host.name -> plynch-wsc [exec] Current OS is Windows 2000 [exec] This OS, Windows 2000 was not found in the specified list of valid OSes: HP-UX,SunOS,Linux [exec] Current OS is Windows 2000 [exec] ipconfig [exec] Output redirected to D:\cygwin\home\plynch\dev\appiant\inunison\.host.address Execute:Java13CommandLauncher: ipconfig Setting project property: awkspot -> 6 [exec] Current OS is Windows 2000 [exec] awk "NR == 6 { print $NF }" .host.address [exec] Output redirected to ByteArray Execute:Java13CommandLauncher: awk "NR == 6 { print $NF }" .host.address Setting project property: host.address -> [delete] Deleting: D:\cygwin\home\plynch\dev\appiant\inunison\.host.address ----------- End debug ------------------- At the line "Execute:Java13CommandLauncher: awk "NR == 6 { print $NF }" .host.address" , I get a message from windows about the 16bit dos subsystem ( see screenshot ) The above does work fine on Solaris though. I am going to try to update my cygwin binaries to see if that helps. This problem seems so simple from the outside....I disagree that this is not a bug ( the single quote thing ) If the debug output is different from what actually gets executed, where can I find what gets executed? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
