I tried your program.
Code:
~/foo$ sh pntest
pntest : You must give or supply one integer
~/foo$ sh pntest 5
5 is a positive number
~/foo$ sh pntest -5
-5 is a negative number
~/foo$ sh pntest 0
0 is a negative number
You might want to reconsider whether or not
0 is truly a negative number. (Or is
0 technically not an
integer?)
One solution might be to add a third else clause to check for
0 and respond appropriately.