> I just got a new job, and I've gone from HP-UX 10.2 - 11.1 O/S to a Sun
> 5.8 O/S. One of the simple environmental differences I've found is that
> then typing in a really long file name or dir name, in HPUX, I used to be
> able to hit the escape key twice, and the shell would finish the name of the
> file for me, if the first few letters of it were unique. This functionality
> doesn't appear to be present on the Solaris boxs I've been on. I always
> took this functionality for granted, but never knew what made it possible.
> First off, is this something that can be done on a Solaris machine? If so,
> how would I set this up?
This question is a bit hard to answer insofar as each version of
ksh(1) has not only different functionality provided to accomplish
this, but also the "right way" and the "kludge method" to do so.
Your version of Solaris has both ksh88 and ksh93 (dtksh(1)).
In ksh88, "set -o vi" allows ESC-* and ESC-\ to do filename generation
and completion. More functionality is available when using ksh93, and
KEYBD trap allow user-customizeable behavior. See:
http://www.research.att.com/~dgk/ksh/fun/vi_keybind # vi binding
http://www.research.att.com/~dgk/ksh/fun/emacs_keybind # emacs bindings
(Your TAB keybinding for filename-line completion would be defined by:
keybind $'\t' $'\E\E')
For particularly good .profile examples with an undocumented kludge to
allow arrowkey bindings (and others) IN KSH88 ONLY, see:
Read the corresponding manpages and do a C.U.S. search for more
information; for instance:
Quote:> One other thing, I lived and died by using ied, in conjunction with
> isql, to be able to recall dataserver commands from a history, when within
> the dataserver. Again, this is something I took for granted. ied does not
> appear to be in my path, and I wasn't able to find any man pages on it on
> the Sun boxes.
> Any info on this, or am I out of luck?
Are you talking about ie(1), the command line editor giving
vi(1)- & emacs(1)-style editting? Is:
("... AUTHOR: ied was developed by HP.")
... the same app as:
If so, then: not at all! ie(1) is available for free download
through the AST library of software tools in source and
binary form for Solaris via kornshell.com at:
IIRC, ie(1) is in the INIT/ast-ast, INIT/ast-ksh, INIT/ast-open,
INIT/ast-base-locale, and INIT/ast-ksh-locale packages.
Be sure to read the FAQ#7 ("Why do 3d(1), ie(1) and
warp(1) fail on my system?") at:
BTW, have you seen -or- is that your query, at:
Quote:> Thanks in advance. Darren
Good luck. Brian