You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Chris Todd <ch...@christophertodd.com> on 2000/11/30 01:14:41 UTC
[PATCH] Telnet docs typos
Hello ant developers-
I noticed what appear to be some typos in the telnet task docs. I have
never submitted a patch to an open source project before, but I have RTFM in
that regard. The patch file pasted below was generated with the following
command "diff -u index.html index.html.orig > index.html.patch". As near as
I can tell, this is the way to do it. Feel free to flame me if I got it
wrong. :-) I didn't attach the patch file because I use Outlook which
sometimes
botches attachments.
Chris Todd
Software Engineer
ctodd@alabanza.com
Alabanza Corporation
index.html.patch:
--- index.html Wed Nov 29 13:05:18 2000
+++ index.html.orig Wed Nov 29 13:01:41 2000
@@ -5455,12 +5455,12 @@
</tr>
<tr>
<td>server</td>
- <td>the address of the remote telnet server.</td>
+ <td>the address of the remote ftp server.</td>
<td>Yes</td>
</tr>
<tr>
<td>port</td>
- <td>the port number of the remote telnet server. Defaults to port
21.</td>
+ <td>the port number of the remote ftp server. Defaults to port
21.</td>
<td>No</td>
</tr>
<tr>
@@ -5475,11 +5475,11 @@
</tr>
</table>
<h3>Examples</h3>
-A simple example of connecting to a server and running a command. This
assumes a prompt of "login:" for the userid, and a prompt of "password:" for
the password.
+A simple example of connecting to a server and running a command. This
assumes a prompt of "ogin:" for the userid, and a prompt of "ssword:" for
the password.
<blockquote><pre>
<telnet userid="bob" password="badpass"
server="localhost">
<read>/home/bob</read>
- <write>ls</write>
+ <write>ls</read>
<read string="/home/bob"/>
</telnet>
</pre></blockquote>
@@ -5487,12 +5487,12 @@
This task can be rewritten as:
<blockquote><pre>
<telnet server="localhost">
- <read>login:</read>
- <write>bob</write>
- <read>password:</read>
- <write>badpass</write>
+ <read>ogin:</read>
+ <write>bob</read>
+ <read>ssword:</read>
+ <write>badpass</read>
<read>/home/bob</read>
- <write>ls</write>
+ <write>ls</read>
<read>/home/bob</read>
</telnet>
</pre></blockquote>
@@ -5501,7 +5501,7 @@
<blockquote><pre>
<telnet userid="bob" password="badpass"
server="localhost" timeout="20">
<read>/home/bob</read>
- <write echo="false">sleep 15</write>
+ <write echo="false">sleep 15</read>
<read timeout="10">/home/bob</read>
</telnet>
</pre></blockquote>
@@ -5510,7 +5510,7 @@
<blockquote><pre>
<telnet userid="bob" password="badpass"
server="localhost" defaultTimeout="20">
<read/>
- <write>GET / http/0.9</write>
+ <write>GET / http/0.9</read>
<write/>
<read timeout="10">&lt;/HTML&gt;</read>
</telnet>
> -----Original Message-----
> From: bodewig@locus.apache.org [mailto:bodewig@locus.apache.org]
> Sent: Wednesday, November 29, 2000 12:16 PM
> To: jakarta-ant-cvs@apache.org
> Subject: cvs commit: jakarta-ant/docs index.html
>
>
> bodewig 00/11/29 09:15:29
>
> Modified: docs index.html
> Log:
> Documentation for the telnet task.
>
> Submitted by: Scott Carlson <Sc...@email.com>
>
> Revision Changes Path
> 1.157 +87 -0 jakarta-ant/docs/index.html
>
Sincerest regards,
Chris Todd
Software Engineer
Alabanza Corporation
ctodd@alabanza.com
Re: [PATCH] Telnet docs typos
Posted by Stefan Bodewig <bo...@apache.org>.
Chris Todd <ch...@christophertodd.com> wrote:
> I noticed what appear to be some typos in the telnet task docs.
many thanks.
> I have never submitted a patch to an open source project before, but
> I have RTFM in that regard. The patch file pasted below was
> generated with the following command "diff -u index.html
> index.html.orig > index.html.patch". As near as I can tell, this is
> the way to do it.
should have been the other way around (diff -u old new), no need to
fear flames though 8-)
> I didn't attach the patch file because I use Outlook which sometimes
> botches attachments.
On the other hand it seems to reformat the text and will break lines
that used to be single lines (breaking the format of the diff
output). Personally I prefer attachments - even when sent by Outlook.
Stefan