On 5/28/08, Alan Coopersmith <Alan.Coopersmith at sun.com> wrote: > Vikash Tulsiyan wrote: > > Thanks Alan. Your link was very helpful. > > To be more specific Following code snippet: > > #!/bin/ksh -p > > sum () > > { > > var=$"$1" > > echo "$var" > > } > > sum xyz > > > > gives an output $xyz on solaris machine while on opensolaris box it gives > output as xyz. > > This is causing my application to crash on opensolaris. Is this a known > issue? Are their other similar incompatibilities or differences between the > two?? > > This is a question best asked of the ksh93 project. >
$"" is not a valid syntax in ksh88 or Sun's ksh88. You have to use '$'"" instead. ksh93 uses $"text" literals to replace 'text' with the value from a message catalog if LC_MESSAGES is not C or POSIX. Irek