Linux might be the better choice after all.
Enable the Linux terminal on any Android device, and you can create or practice your bash scripting on the go.