Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Please add a note that you can't use '-' in variable names #115

Open
MattJaccino opened this issue Jul 15, 2021 · 1 comment
Open

Please add a note that you can't use '-' in variable names #115

MattJaccino opened this issue Jul 15, 2021 · 1 comment

Comments

@MattJaccino
Copy link

Spent a crazy long time debugging a gitlab script where I tried to assign "exit-code=$?" and had no idea why bash wasn't accepting it. A buddy sent me this repo as a joke, and I noticed it didn't mention this in the VARIABLES section. Definitely would confuse new users since hyphens are allowed in command names.
Thank you.

@terminalforlife
Copy link

Good idea. Valid names are, in REGEX: ^(_|[^[:digit:]][[:alnum:]_]+)$

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants