SunOS 5.8 Generic_108528-20 sun4u sparc SUNW,Ultra-60 running ksh.

Coming from a HPUX environment.

In HP UX, not problem with initializing a variable

somevariable=0

then assigning then redirecting standard error

somecommand 2> $somevariable

Using this method in the Solaris environment creates a file called 0 with
the contents of somecommand 2> $somevariable .

Am I missing something ?