Wednesday, April 18, 2012

Re: echoing the contents of a registry to a /dev device

Chris Sutcliffe, Wed 2012-04-18 @ 09:11:49-0400:
> Hi All,
>
> I'm trying to figure out a way to dump the contents of the '@@'
> registry (i.e. the registry populated by the yank command) to the
> /dev/clipboard device in Cygwin. Basically I'm trying:
>
> silent exe "!echo \"" . <somehow access @@ > . "\" > /dev/clipboard"
>
> But I can't figure out how to access @@. Simply trying:
>
> silent exe "!echo \"" . @@ . "\" > /dev/clipboard"
>
> Didn't work.
>
> Any help would be greatly apprecaited, thank you!
>
> Chris

The default register is ", not @. There is no @ register, as far as I am
aware.

silent execute '!echo "' . @" . '" >/dev/clipboard'

No comments: