What's new

Does Asuswrt-Merlin have bash array support ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Denna

Senior Member
Does Asuswrt-Merlin have bash array support ?

If so, how do you get bash scripts with arrays to work ?
 
Last edited:
Figured it out.

Had to change shebang to "#!/opt/bin/bash".
 
Note that Asuswrt-Merlin does not include bash only sh, a stripped down version of the Almquist shell.
Bash is available as a package in Entware, which you seem to have installed.

This gives the full path to your default shell:
Code:
echo $SHELL
while this gives you the current shell in use:
Code:
echo $0
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top