Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine version of ksh? 1

Status
Not open for further replies.

jouell

MIS
Nov 19, 2002
304
US
How would i do this seemingly simple task?
 
what /bin/ksh

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Try
Code:
ksh --version
or
Code:
ksh -v

Check the man page to see which command is correct, or if there's a different one.
 
Hmmm, don't use it, so I wouldn't know. I'm guessing from your post, no. :)
 
Well I have heard half most of those replies before, and so far none had worked (the commands return an empty string), except for the "what" command which tells me too much about files other than ksh...It makes me think my OS (tru64) is to blame...

Any other ideas?

-john


 
No, Tru64 is not to blame.
Currently I work with Tru64 V5.x, and from the replies given above there is one (and only one) solution that works for me: cntrl-v.
And I remember having seen it with Digital Unix V4.x and even V3.x.

So let's see why it shouldn't work for you.
Two ideas:
1) Are you in vi mode?
If so, type 'set -o emacs' and try again.
2) Is cntrl-v used for anything else?
You could verify with 'stty -a'

hope this helps
 
OK well hoinz, you win a prize your answer was the only one that worked.

And it looks like ksh 88:
Version M-11/16/88f

THANKS!!
-John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top