markvgti
markvgti

Reputation: 4619

Why doesn't copying to clipboard in Cygwin work here?

This works:

curl -Ls -o /dev/null -w %{url_effective} $URL | xargs printf "%s" > /dev/clipboard

whereas this doesn't:

curl -Ls -o /dev/null -w %{url_effective} $URL > /dev/clipboard

Why is that?

Upvotes: 1

Views: 235

Answers (1)

matzeri
matzeri

Reputation: 8486

two possible solutions

curl -Ls -o /dev/null -w %{url_effective} $URL > filename
cat filename > /dev/clipboard

and

curl -Ls -o /dev/null -w %{url_effective} $URL | putclip

putclip is in

$ cygcheck -f /usr/bin/putclip
cygutils-extra-1.4.16-2

Upvotes: 1

Related Questions