Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Oh, that explains why I couldn't redirect the output. I thought it was a regular program. Are there perhaps any alternatives that behave similarly but could be redirected? Commented Nov 5, 2023 at 11:25
  • 5
    @DanielKrajnik you can redirect the output of shell builtins just fine. You cannot redirect the output of read because it has no output, not because it is a builtin. echo is also a builtin on most shells but its output can be redirected just fine. Commented Nov 5, 2023 at 11:26
  • thanks, I misunderstood it then. You are right in the last paragraph cat | termux-clipboard-set works (I couldn't find which key terminates cat - found out eventually that CTRL+D works). I don't think that just termux-clipboard-set works anymore (this issue also mentions that it just hangs after pressing CTRL+D) Commented Nov 5, 2023 at 11:34
  • 1
    cat does nothing but copy bytes from its input to its output. So cat | termux-clipboard-set and termux-clipboard-set should behave 100% identically. If you're really finding that they're not, that's probably a quite subtle bug. Commented Nov 5, 2023 at 22:25