T
Termux•15mo ago
COMMANDer

Termux-file-editor not doing anything

Hello, i tried using the termux file editor but the termux-file-editor file didnt exist, so i created it by myself. It wasnt complaing thta the file didnt exist, but after tring to edit something with it (by clicking on file, and sharing with termux) a termux window opend, but didnt do anything. Here is the test Script i used:
#!/data/data/com.termux/files/usr/bin/bash

echo e
#!/data/data/com.termux/files/usr/bin/bash

echo e
I use an Huawei Y6p Android 10 Installed termux with apk from github Emui ver 10.1.0 Kernel ver: 4.14. 141 + android@localhost #1 wed sep 14 03:33:28 CST 2022
8 Replies
fisher
fisher•15mo ago
can you remove the file and try this
ln -s $(command -v nano) ~/bin/termux-file-editor
ln -s $(command -v nano) ~/bin/termux-file-editor
COMMANDer
COMMANDerOP•15mo ago
Thanks, that worked. Do you know why my version didnt work?
fisher
fisher•15mo ago
idk, i just followed the wiki
Dr. Jaska
Dr. Jaska•15mo ago
echo e isn't an interactive command so that's likely why -f flag for force in ln is able to overwrite files if they exist at target location
fisher
fisher•15mo ago
its because the terminal session instantly closes when the command ends
fisher
fisher•15mo ago
this works for me
No description
Dr. Jaska
Dr. Jaska•15mo ago
That's what I meant by non-interactive. Poor choice of words. I forgot that programs can sometimes take >0.01s to run even if they're non-interactive 😅
COMMANDer
COMMANDerOP•15mo ago
Thanks for your help.
Want results from more Discord servers?
Add your server