* Summary : Basic korn shell question
@ 1999-04-12 20:33 Jim R Jones
0 siblings, 0 replies; only message in thread
From: Jim R Jones @ 1999-04-12 20:33 UTC (permalink / raw)
To: tru64-unix-managers
Thanks to all who replied. I recieved replies from numerous people with
suggestions and hints. The real answer is use the print command with a -
when printing out values instead of just the plan print command or the echo
command to display values.
the test program
./testj 3 -4 5
#!/bin/ksh
print - $1
print - $2
print - $3
or you can do it with the echo command. The program would look as follows:
#!/bin/ksh
echo $1
echo $2
echo $3
This however gives the bad option error
./testb 3 -4 5
print $1
print $2
print $3
When it gets to the print $2 command it prints out the following error:
testj [3]: print: bad options(s)
To solve the problem with the print command just use the print - command
which is the same as the echo command in the korn shell.
Again thanks all that replied.
Jim Jones
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-04-12 20:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-12 20:33 Summary : Basic korn shell question Jim R Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox