1

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

l0b0
  • 52,149
  • 24
  • 132
  • 195
Devyn Collier Johnson
  • 3,874
  • 2
  • 17
  • 38

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
  • 216,930
  • 22
  • 195
  • 267
  • 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