[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

A patch that erroneus causes a text conflict

From: Daniel Näslund <daniel_at_longitudo.com>
Date: Fri, 23 Jul 2010 16:06:09 +0200

Hi Stefan!

The patch below fails to apply. I'm investigating why.

Content of the file 'new':
-----------------------------
[[[
    #!/bin/sh
    IFS=@ read name address
    echo "A mail to $name at $address"
    read subject
    echo "Subject: $subject"

The script is fed its input through standard input. Calling this script in the
following manner (the > and $ are prompts)

    $ email <<EOT
> matkin_at_docs.uu.se
> Something strange @ my place
> EOT

to a shell, will produce the output

    A mail to matkin at docs.uu.se
    Subject: Something strange @ my place
]]]

The patch:
-------------
[[[
Index: new
===================================================================
--- new (revision 2)
+++ new (arbetskopia)
@@ -4,12 +4,7 @@
     read subject
     echo "Subject: $subject"
 
-The script is fed its input through standard input. Calling this script in the
-following manner (the > and $ are prompts)
> Something strange @ my place
> EOT
 
-to a shell, will produce the output
 
- A mail to matkin at docs.uu.se
- Subject: Something strange @ my place
]]]

Output:
---------
  C new
> rejected hunk @@ -4,12 +4,7 @@
  Summary of conflicts:

Thanks,
Daniel
Received on 2010-07-23 16:08:30 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.