I like to use the xclip utility to capture the output of commands on the clipboard. However, when I try to use it with shell-command it seems to hang.
In a "normal" shell I can run a command such as echo "hello world" | xclip -selection clipboard and it will return almost immediately and copy hello world to the clipboard. When I try to run the same command from shell-command the command seems to "hang": the focus stays in the minibuffer and I can't do anything until I cancel the command with C-g. After cancelling the command the text has been copied to the clipboard though.
I'm running emacs 24.4.1 on Debian 8.6
Any idea why the xclip command hangs?