termux / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
2.3k stars 454 forks source link

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

Open woodnt opened 4 years ago

woodnt commented 4 years ago

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

xalexalex commented 4 years ago

Hey, unfortunately I can't test this because apparently Xiaomi's MIUI ignores the title altogether. Please try using this patched version of termux-share and let me know if it fixes the problem.

Instructions (please ignore if you know how to do this):

cd
curl -O https://gist.githubusercontent.com/xalexalex/f68e68c769ca3aa97a603d59e949bb4b/raw
chmod +x termux-share
echo http://www.amazon.com | ./termux-share -a send -t "multi word text"
kcubeterm commented 4 years ago

unfortunately I can't test this because apparently Xiaomi's MIUI ignores the title altogether.

Thanks , i have tested many times, but got nothing, i mean execpt url.