2

What Unicode symbols are acceptable in BASH variable names? Does the same list of symbols apply to CSH and TCSH?

l0b0
  • 55,365
  • 30
  • 138
  • 223
Devyn Collier Johnson
  • 4,124
  • 3
  • 18
  • 39

1 Answers1

3

I would say none.

á=3
á=3: command not found

If you like unicode symbol names, use Perl:

perl -e 'use utf8; $á = 42; print $á'
42
choroba
  • 231,213
  • 25
  • 204
  • 289
  • 1
    @l0b0: Want to nitpick? Devyn asked for [Unicode symbols](http://en.wikipedia.org/wiki/Unicode_symbols), not characters. – choroba Jun 11 '13 at 14:17
  • 1
    +1 My bad - Clarified OP. I can honestly say I'd never heard of "Unicode symbols" as a *proper subset* of Unicode. – l0b0 Jun 11 '13 at 14:25