Bugs item #1017700, was opened at 2004-08-27 12:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1017700&group_id=31650
Category: Core
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: Patrick Wagstrom (pridkett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Extra ^M from the echo command
Initial Comment:
Prefix: this is from the nightly build from August 25th
with Mono 1.0 on Fedora Core 1.
It appears when tasks are run that use the echo command
that there are extra ^M characters at the end of every
line. While on windows this makes no difference, it
can be very bad on Linux. For example, the Nant build
script includes the following commands:
<echo file="${path::combine(install.bindir,
'nant')}">
#!/bin/sh
exec ${path::combine(prefix, 'bin')}/mono
${path::combine(install.copylocation, 'bin')}/NAnt.exe "$@"
</echo>
Which should generate a nice little shell script to run
Nant without having to type "mono NAnt.exe", however,
that does not appear to be the case. Instead the
following script is generated
--START--
^M
#!/bin/sh^M
^M
exec /usr/bin/mono share/NAnt/bin/NAnt.exe "$@"^M
��������
--END--
The '�' characters represent blank spaces on the final
line. Running this script produces errors on linux.
So there are two things that need to be done, first
with the echo command, don't spit out ^M characters on
platforms that don't use them (I shudder to think what
would happen to Mono on OSX). Secondly, the #!/bin/sh
should appear immediately after the start of the echo
command, not on a new line. This will prevent the
blank line at the top.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1017700&group_id=31650
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers