# gitk: possible bug in diffcmd

1 messages from 2008-01-05 to 2008-01-05. Participants: Maik Beckmann.
Thread: https://gitlist.dev/t/11482

## Maik Beckmann, 2008-01-05 09:41

Subject: gitk: possible bug in diffcmd
Message-ID: <loom.20080105T093532-817@post.gmane.org>
URL: https://gitlist.dev/e/loom.20080105T093532-817%40post.gmane.org

```
Hello.  

I'm using git-1.5.3.7 on linux.  

When I try get use "Make Patch" from by the context menu and click on "Generate"
an error popup appears which states: 
  "Error creating patch: illegal use of | or &|"
I tracked the problem down to line 5064 in gitk, which belongs to diffcmd: 
  set cmd [concat | git diff-tree -r $flags $ids]  
This line produces something like 
  | git diff-tree -r -p 5441937e2... 7394db226...  
As you see there is a leading pipe symbol which caused the error message.  
Is there some special shell to use with gitk?? Or is it just a BUG?

If I remove the | after concat everything works smooth.

Thanks in advance,

 -- Maik

```
