Search code examples
bashunixtcsh

What is the Bash equivalent of the set command in C shell?


I need to run this script in the Bash shell as that is the only shell to which I have access on a high performance computing cluster at my present organization.

enter image description here


Solution

  • What is the Bash equivalent of the set command in C shell?

    The equivalent is just assigning the variable. There is no special command for that.

    # set var = 'stuff'
    var='stuff'