Unexpected results in attempting a patch
David Jensen
david.e.jensen at gmail.com
Mon Sep 20 20:40:57 EDT 2010
Tom,
On Mon, Sep 20, 2010 at 8:20 PM, Tom Bullock <tbullock at nd.edu> wrote:
>
SNIP
> Question 2:
>
> I ran "svn diff" in a terminal and the result showed what I was expecting.
> I then wanted to capture the output into a file to attach to a bugzilla bug
> report. I used this command:
> "svn diff | patch1" thinking I was going to pipe the output into the file
> called patch1. Instead I got this response:
>
> No command 'patch1' found, did you mean Command 'patch' from package 'patch'
> (main)
>
> obviously, I am misleading ubuntu 10.4 and don't know how to pipe output
> into a new file. What should I be doing?
>
> TIA
>
> Tom
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
You don't pipe (|) to an output file, you redirect (>). Pipes
'connect' the output of one program to the input of another, so you
were trying to run the output from svn diff into a program patch1.
You want > instead of | ("svn diff > patch1") to that you redirect the
output to a file and not a program.
Regards,
David
More information about the gnucash-devel
mailing list