I have been programming for the last 10+ years in clipper (dos world),
and Delphi (Windows). I decided to finally go back and take a
UNIX/C/C++ course. In the course, they gave us SCO Openserver
This week we are doing shell scripting. Since I already have been
programming, I decided to buy a book and read about a lot of things
that we are not going to get to. The book, 'Hands-On KornShell93
Programming' by Barry Rosenberg was recommended by several professors
and people that were already programming scripts in UNIX.
After reading through, I was happy to see that the script language had
more power than we were being taught. One thing I was happy about was
that there were variable types, not just strings.
My problem is: I tried using float variables.
When I run the script, I get an error message, something about float
doesn't exist or something like that. I thought float might just be
an alias for typeset [ -En -Fn ], so I tried typeset and it turned the
numbers into binary (very weird)
echo $x # returns 2#101
(( x = x / 2 ))
Does this mean that I do not have KornShell93 ?
Thanks in advance