From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 Description of problem: Setting a variable with a "-" gives syntax errors.. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.setenv a-b /c 2. 3. Actual Results: polk% setenv a-b /c setenv: Syntax Error. polk% Additional info:
I beleave other shells are affected as well.. polk% bash bash-2.05b$ A-B=/C bash: A-B=/C: No such file or directory bash-2.05b$ A_B=/C polk% zsh polk% A-B=/C zsh: no such file or directory: A-B=/C
According to bash man page: name - A word consisting only of alphanumeric characters and underscores and beginning with an alphabetic character or an underscore. Also referred to as an identifier. The above applies to both function and variable names and therefore '-' cannot be used in them. I can't find it for tcsh but I am quite sure the same applies. This is not a fault.
Closing as 'notabug'