" You can’t make external storage file executable. If your file on external storage either move it to termux home directory or execute like this bash filename"
Yes, I can run the script if I use…
(whether it is executable or not)
“filename” is in “shared” directory not “termux home” directory.
“termux home” directory is higher up the hierarchy than “shared”.
I don’t think that I can put files in “termux home” because it doesn’t show in my file manager.
Maybe I would need a rooted phone to do that.
I suppose that “storage” and “storage/shared” is viewed as “external storage” by Termux.
See the hierarchy…
files -> home -> storage -> shared -> “filename”
app_textures code_cache shared_prefs
$ cd files
$ cd home
$ cd storage
dcim movies pictures
downloads music shared
$ cd shared
Android Movies Xiaomi
DCIM Music fac_sources
Documents Pictures filename
$ bash filename
$ sh filename
1 So start Termux.
2 Then cd to storage/shared.
3 Then run bash filename or sh filename.
Is that the solution?