Login as root user and simply type the following command in FreeBSD based laptop, desktop or server to install GNU bash shell:
# pkg install bash
Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: bash: 4.3.42 The process will require 6 MiB more space. Proceed with this action? [y/N]: y [webserver] [1/1] Installing bash-4.3.42... [webserver] [1/1] Extracting bash-4.3.42: 100% Message from bash-4.3.42: ====================================================================== bash requires fdescfs(5) mounted on /dev/fd If you have not done it yet, please do the following: mount -t fdescfs fdesc /dev/fd To make it permanent, you need the following lines in /etc/fstab: fdesc /dev/fd fdescfs rw 0 0 ======================================================================
Update your /etc/fstab file as displayed above and type bash to use it.