The xclip manual says that there are three storage locations named primary (XA_PRIMARY), secondary (XA_SECONDARY) and clipboard (XA_CLIPBOARD). I copied (Ctrl+c) some text from my browser and examined the contents of the three locations mentioned above in the terminal:
xclip -s primary -o
xclip -s secondary -o
xclip -s clipboard -o
All three contain the same text.
If I now type
date | xclip -selection XA_PRIMARY
Only the XA_PRIMARY should contain the date text. But in fact the other two i.e. XA_SECONDARY, and XA_CLIPBOARD also contain the same text (date information). So are the three one and the same? And if so what is the point?
What baffled me even more, Ctrl+Shift+v (still in terminal mode) pastes the orgiginal text that I copied from the browser! which suggests that shell's own clipboard is in operation as well.
Does someone have an example that demonstarates that the three locations can hold different values at the same time and how they relate to the regular clipboard?