| Summary: | [patch] tcsh(1) bears no mention of brace expansion in case labels | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | Andres Perera <andres.perera> | ||||
| Component: | Books & Articles | Assignee: | Eitan Adler <eadler> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed tcsh has been updated which may have fixed the issue. in addition tcsh is contributed software which means we don't write it, just use it. Perhaps upstream would be interested? Responsible Changed From-To: freebsd-doc->eadler I closed it. |
The man page explains that variable expansion and filename substitution characters are allowed within `case:' labels in `switch' clauses, but does not mention brace expansion. As a result, many tcsh scripts show awkward statements such as: case foo: case bar: breaksw; instead of a more idiomatic approach: case {foo,bar}: breaksw;