The current Ubuntu version uses dash by default for sh, which is really awkward to use, so I looked for it and found that it can be changed to the original bash through settings.
First check the system's /bin/sh
$ ls -al /bin/sh
/bin/sh -> dash
Switch sh to bash
$ sudo dpkg-reconfigure dash
Check the result after switching
$ ls -al /bin/sh
/bin/sh -> bash
Recommended Posts