wiki:cypress/Bash

Bash

The default version of bash on cypress is 4.1.2. To check the version you are using:

[user@cypress2 ~]$ echo "${BASH_VERSION}"
4.1.2(1)-release

There are newer version of bash installed as modules on Cypress.

[user@cypress2 bash]$ module av bash

---------------------------------------------------------------------------------- /share/apps/modulefiles -----------------------------------------------------------------------------------
bash/5.1.8

To use this on the current command line session,

[user@cypress2 bash]$ module load bash/5.1.8
[user@cypress2 bash]$ bash
[user@cypress2 bash]$ echo "${BASH_VERSION}"
5.1.8(1)-release

To use this on batch script,

#!/share/apps/bash/5.1.8/bin/bash
#SBATCH --partition=defq		# Partition
#SBATCH --qos=normal			# Quality of Service
#SBATCH --job-name=test 	# Job Name
#SBATCH --time=00:10:00		# WallTime
#SBATCH --nodes=1 			# Number of Nodes
#SBATCH --ntasks-per-node=1 		# Number of tasks (MPI presseces)
#SBATCH --cpus-per-task=1 		# Number of processors per task OpenMP threads()
#SBATCH --gres=mic:0  			# Number of Co-Processors

date
echo "${BASH_VERSION}"
Last modified 4 years ago Last modified on 06/18/21 21:31:04
Note: See TracWiki for help on using the wiki.