termux / termux/termux-api

termux-share using -t flag now only sharing first word

Open
#322 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug report
Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Code such as:

$ echo http://www.amazon.com|termux-share -a send -t "this is a bunch of text"

Used to share the url and title, since the past few days, is only sharing, from this example in the title, the word this WITHOUT throwing a "too may arguments" error. Same with any other phrase after a -t.

Since text is quoted, I'm not sure why it is truncating with the first space. Something has changed as it worked fine just the other day. I seem to remember doing a pkg update in between so I suspect a regression.

Kind regards

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the quoted termux-share -t command from the issue and inspect the argument parsing entry point for termux-share. Confirm that a title containing spaces is preserved and verify the behavior against the reported regression.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.