Post #9,441
9/17/01 12:17:45 PM
|

korn shell question
Any way to map 'TAB' to 'ESC ESC' in ksh88?
Regards,
-scott anderson
|
Post #9,527
9/17/01 6:29:15 PM
|

Re: korn shell question
Don't think so, not in ksh88 anyway. Interactive key binding to ksh was added in ksh93.
www.kornshell.com lists some resources.
From the FAQ:
Q4.\tHow is keybinding done? A4.\tksh93 provides a KEYBD trap that gets executed whenever a key \tis entered from the keyboard. Using this trap, and the associate \tarray feature of ksh93, a keybind function can easily be written \twhich will map any entered key sequence to another key sequence. ...
Is this what you're trying to accomplish? Q6.\tDoes ksh support file name completion? A6.\tYes, it does. The default key binding is <ESC><ESC> \thowever, starting with the 'g' point release, <TAB> also works \tfor completion. Note, the vi users need to set -o viraw \tin order to get <TAB> completion to work.
----- Steve
|
Post #9,529
9/17/01 6:39:13 PM
|

that's the one.
I read that FAQ. Unfortunately, we aren't running the "g" release (whatever that is), and I have to hit ESC-ESC to get filename completion (I use the Emacs editing bindings).
ESC-ESC is godawful. :-P
Regards,
-scott anderson
|
Post #9,537
9/17/01 7:15:53 PM
|

xmodmap / loadkeys question
Are you sure this is a shell question at all?
-- Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com] What part of "gestalt" don't you understand?
|
Post #9,550
9/17/01 9:13:15 PM
|

Yes.
Terminal emulation only, not my box.
Regards,
-scott anderson
|
Post #9,554
9/17/01 9:55:51 PM
|

Re: Yes.
I assumed that, why else would you be dealing with ksh...ksh88 no less. Older SCO or other SVR4 box?
btw, confirmed my earlier post: Caveats:
There is no command completion in ksh88, though there is in ksh93. There is no tab completion in ksh88, though there is in pdksh and ksh93 To use tab-complete in pdksh, you may need to use set -o vi-tabcomplete To use tab-complete in ksh93 you may need to use set -o viraw
I think you're stuck with ESC ESC, or ask the sysadmin to upgrade the shell :-)
----- Steve
|
Post #9,555
9/17/01 10:00:27 PM
|

Sun box.
Dunno the OS, will look that up tomorrow. I'm assuming it's Solaris something-or-other.
It's actually Korn shell, I believe. I did a test that I found on a website that seemed to point to ksh88.
Regards,
-scott anderson
|
Post #9,586
9/18/01 7:17:52 AM
|

It's not the POSIX shell, is it?
I know the default shell on HP-UX is something called a POSIX shell. It's like a cross between Korn Shell and the Bourne Shell. Its command-completion key sequence was ESC-ESC. I never even tried to figure out how to change it because I was happy with the default vi-key editing keys.
I'm not sure how you'd check, though; check file sizes of /bin/sh and /bin/*sh perhaps?
Wade.
"All around me are nothing but fakes Come with me on the biggest fake of all!"
|
Post #9,607
9/18/01 9:26:23 AM
|

Nope. ksh
man calls it Korn Shell.
SunOS xxxx 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-4
Regards,
-scott anderson
|
Post #10,067
9/21/01 10:33:36 AM
|

Tru64 ksh
No idea what version of ksh is running on the Tru64 box at work, but filename completion is achieved by ESC-Blackslash, which I'm (slowly) getting used to. Haven't had the time/energy to see if/how it's changeable.
On and on and on and on, and on and on and on goes John.
|
Post #10,195
9/22/01 5:53:32 AM
|

Ackshully
The HP/UX box I've got to play with at the moment (version 10.20.something) has regular sh as the default shell, with ksh and csh also available.
"man sh" reveals no mention of a "POSIX shell".
-- Peter Shill For Hire
|
Post #10,248
9/22/01 11:15:01 PM
|

IIRC...
/bin/sh is the POSIX shell.
There's another shell (/bin/??) which is the Bourne shell. /bin/sh-old?
/bin/ksh is the Korn shell.
This was back in 10.10 days, possibly 10.20, ~1996-1998. Try apropos posix for more info, enabling apropos if necessary.
-- Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com] What part of "gestalt" don't you understand?
|
Post #10,259
9/23/01 8:05:27 AM
|

It's possible to change it.
I'm not sure just how you're supposed to change it, though, and a sym-link doesn't strike me as the way HP would do it. It's been a few years since I've played on HP-UX. There should be a /bin/posix-sh, though, which will definitely be the POSIX shell. In practice, there's very little between them.
Wade.
"All around me are nothing but fakes Come with me on the biggest fake of all!"
|
Post #10,653
9/27/01 3:28:59 AM
|

Shows up on my manual page
NAME sh - overview of various system shells
SYNOPSIS POSIX Shell: sh [+-aefhikmnoprstuvx] [+-o option] ... [-c string] [arg ...] rsh [+-aefhikmnoprstuvx] [+-o option] ... [-c string] [arg ...]
Bourne Shell: sh [--acefhiknrstuvx ...] [arg ...] rsh [--acefhiknrstuvx ...] [arg ...]
(and so forth) Basically, this sh(1) page tells you what the shells are and which manual page to look at in order to get the detailed information. Perhaps on your HPUX they didn't update the man pages when/if they upgraded to 10.20?
Who knows how empty the sky is In the place of a fallen tower. Who knows how quiet it is in the home Where a son has not returned.
-- Anna Akhmatova (1889-1966)
|
Post #10,748
9/28/01 3:02:07 AM
|

It's a strange box
Only has a 2 user licence, only has X installed. There's no telnet server. It's running Oracle and gawd only knows what's been done to it.
-- Peter Shill For Hire
|
Post #10,762
9/28/01 8:49:00 AM
|

That is very odd.
The two-user license I understand; IIRC a default HP-UX install ships like that. There are "patches" you buy to give you more users. But no telnet server? That's a bizarre omission. I thought HP loved telnet.
Wade.
"All around me are nothing but fakes Come with me on the biggest fake of all!"
|
Post #9,568
9/17/01 11:18:32 PM
|

alias what you want with what you need using ascii table?
why did god give us a talleywhacker and a trigger finger if he didnt want us to use them? Randy Wayne White
|