Skip to content

Brackets should be escaped on Csh shells #565

Description

@xdelaruelle

When defining an alias containing bracket characters ([]), if module is run against csh/tcsh shells, an error is obtained.

Example modulefile:

#%Module
set osrel 80
set-alias mycommand "bsub -R \"select[type==X64LIN && osrel==$osrel]\" myapp"

Error when running module:

$ module load ./test
alias: No match.

It seems bracket characters have a special meaning on Csh shell. Thus they should be escaped when module produces shell output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions