[Bug 1854113] [NEW] pbcopy & pbpaste for Linux

psl 1854113 at bugs.launchpad.net
Tue Nov 26 23:46:58 UTC 2019


Public bug reported:

This is not a bug report but request for enhancement. Ubuntu 18.04
doesn't have pbcopy & pbpaste commands.

Mac users can use two commands, pbcopy and pbpaste, to work with
clipbopard in their scripts. No such "easy to use" solution is available
at Linux! Could be pbcopy and pbpaste commands implemented at Linux?
That will make migration of Mac user to Linux World easier... ;-)

There are several articles how to implement pbcopy and pbpaste at Linux,
most of them use "alias", something like this:

```
# mimic osx pbcopy/pbpaste
alias pbcopy="xclip -selection clipboard -i"
alias pbpaste="xclip -selection clipboard -o"
```
or
```
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
```

I think that alias commands cannot be used in shell script, right? Is it
possible to implement pbcopy and pbpaste in the way to be usable in
scripts too? These commands could be included in "xclip" package.

BTW, pbcopy and pbpaste are binary executable files at OS X.

** Affects: xclip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to xclip in Ubuntu.
https://bugs.launchpad.net/bugs/1854113

Title:
  pbcopy & pbpaste for Linux

Status in xclip package in Ubuntu:
  New

Bug description:
  This is not a bug report but request for enhancement. Ubuntu 18.04
  doesn't have pbcopy & pbpaste commands.

  Mac users can use two commands, pbcopy and pbpaste, to work with
  clipbopard in their scripts. No such "easy to use" solution is
  available at Linux! Could be pbcopy and pbpaste commands implemented
  at Linux? That will make migration of Mac user to Linux World
  easier... ;-)

  There are several articles how to implement pbcopy and pbpaste at
  Linux, most of them use "alias", something like this:

  ```
  # mimic osx pbcopy/pbpaste
  alias pbcopy="xclip -selection clipboard -i"
  alias pbpaste="xclip -selection clipboard -o"
  ```
  or
  ```
  alias pbcopy='xsel --clipboard --input'
  alias pbpaste='xsel --clipboard --output'
  ```

  I think that alias commands cannot be used in shell script, right? Is
  it possible to implement pbcopy and pbpaste in the way to be usable in
  scripts too? These commands could be included in "xclip" package.

  BTW, pbcopy and pbpaste are binary executable files at OS X.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xclip/+bug/1854113/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list