- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- stty question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 05:44 PM
тАО03-10-2003 05:44 PM
stty question
autocomplete was not set somehow. I guess (yes, I am just guessing because it was not mentioned in the book how it was set) it has something to do with stty just like erase.
Here is output of stty -a:
$ stty -a
speed 300 baud; line = 0;
rows = 24; columns = 80
min = 1; time = 0;
intr = ^C; quit = ^\; erase = DEL; kill = ^U
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp = ^Z; dsusp
werase
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
Does anyone know which one sets autocomplete? If it is not set here then how is it set? Currently it is working in my csh but not in sh.
Shawn
- Tags:
- stty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 05:48 PM
тАО03-10-2003 05:48 PM
Re: stty question
Try setting your shell to be 'ksh' from the $ prompt. Once you have use the escape key (twice)
- Tags:
- completion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 06:07 PM
тАО03-10-2003 06:07 PM
Re: stty question
Command recall and filename expansion is a korn shell feature. It can also be found in POSIX. Put the line below in your root account's /etc/profile file or in your .profile file for other accounts that use POSIX.
export HISTFILE=$HOME/.sh_history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 07:06 PM
тАО03-10-2003 07:06 PM
Re: stty question
As I said, I can always use the feature in csh. My point was not to use it but to know how to set it.
I am not talking about history so export HISTFILE was not the solution I am afraid :-( I found I am lucky that things always don't work the same way as described in the book.
Thanks for your replies!
Shawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2003 08:08 PM
тАО03-10-2003 08:08 PM
Re: stty question
you should use
#set filec
to set that
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 08:27 AM
тАО06-04-2004 08:27 AM
Re: stty question
any help would be greatly appreciated.
Thanks,
Ty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 09:13 AM
тАО06-04-2004 09:13 AM
Re: stty question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 09:25 AM
тАО06-04-2004 09:25 AM
Re: stty question
For example, I use sh, if $EDITOR=vi, file name completion works with ESC ESC, and ESC \. BUT, if $EDITOR=emacs, only ESC ESC works. ESC \ does not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2004 01:43 PM
тАО06-04-2004 01:43 PM
Re: stty question
Bill Hassell, sysadmin