Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'not a valid identifier' error when defining shell function on bash #401

Closed
xdelaruelle opened this issue Jun 6, 2021 · 0 comments
Closed
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

When defining on Bash a shell function including a - in its name, a not valid identifier error is obtained:

$ ml -V
Modules Release 4.7.1 (2021-04-06)
$ cat test
#%Module
set-function foo-bar {echo foo bar}
$ ml ./test
bash: export: `foo-bar': not a valid identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant