hp unix doesn't have tab completion


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting hp unix doesn't have tab completion
# 1  
Old 08-24-2009
hp unix doesn't have tab completion

hi guys,
i am new to HP unix , i am doing Solaris , i am just asking is there any thing like "bash" in hp unix including tab completion?
# 2  
Old 08-24-2009
HPUX should have the posix shell with double esc working like tab in the bash shell.
but if you want to use bash, you could put it in your PATH so that it's available after login by giving the command 'bash'.
# 3  
Old 08-25-2009
but the PATH contain the directories for you command, and i searched in my box i couldn't find any package or file with bash, do i need to download any files ?
# 4  
Old 08-25-2009
Check if you have bash installed on server, if yes either set your default shell to bash or add bash command in .profile file in your home directory.
Another option is to use ksh shell with vi. This is not as easy as bash but vi commands can be used to complere,search previous commands, etc.
in your .profile or command prompt
Code:
ksh -o vi
ESC  |  will help complete the file names but will not do listing
Esc k   diskplay last command
/"command"  search ofr last execution of command, 'n' for next

You have to be familiar with vi commands, and vi commands can be used to modify commands in line.
# 5  
Old 08-25-2009
how to check if bash installed? and how to install it ? from where ?

check:
# bash
ksh: bash: not found
# 6  
Old 08-25-2009
how about:
Code:
which bash

# 7  
Old 08-25-2009
# which bash
no bash in /opt/nokiaoss/platform/common/bin /opt/nokiaoss/irp/bin /opt/nokianms/bin /usr/sbin /usr/bin /usr/ccs/bin /usr/contrib/bin /opt/hparray/bin /opt/nettladm/bin /opt/upgrade/bin /opt/fcms/bin /opt/pd/bin /opt/resmon/bin /usr/bin/X11 /usr/contrib/bin/X11 /opt/graphics/common/bin /opt/perl/bin /opt/mx/bin /opt/hpnpl//bin /opt/perf/bin /opt/ignite/bin /opt/ldapux/bin /var/opt/netscape/servers/shared/bin /var/opt/netscape/servers/bin/slapd/server /var/opt/netscape/servers/bin /usr/sbin/diag/contrib /opt/ots/bin /opt/ots/lbin /usr/local/bin /opt/gnome/bin /opt/mozilla /sbin /usr/sbin /opt/oracle/product/9i/bin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Bash Tab Completion Hanging

Hi, I'm having a problem with tab completion at the bash command line. For some reason, whenever I type g<tab>, the terminal will freeze up for 5-10 seconds before asking me if I want to display all 325 possibilities. I thought that maybe it's because of the high number of commands, but I have... (4 Replies)
Discussion started by: Raz716
4 Replies

2. Windows & DOS: Issues & Discussions

Cygwin: no tab completion options when using tilda

Hi, I am using cygwin on windows machine. Tab completion works as expected in almost all areas, except for when I use tilda (~) to access files/dir under my home dir. When i type 'cd ~/' and hit TAB nothing happens, no completion options are given. I can type just 'cd' and it will change to... (4 Replies)
Discussion started by: centerback
4 Replies

3. UNIX Desktop Questions & Answers

TAB completion in cygwin

Hi there, I ve been using cygwin for some time now without any problems. However, recently I ve mapped a new drive on Windows and are now having problems with TAB completion for awk scripts in cygwin on this newly mapped drive (cygdrive t). I can access and run all files but cygwin doesn't do... (5 Replies)
Discussion started by: Tommes
5 Replies

4. HP-UX

color terminal and tab completion?

hello, i'm a linux zealot (fedora), so i know a some about unix. the company i work for uses HP-UX though and there are a few quirks i'd like smooth out by making them work more like my beloved redhat type systems...=) right now they have all users using ksh and completion is done by hitting... (4 Replies)
Discussion started by: clockworks
4 Replies

5. Shell Programming and Scripting

[tcsh2bash] Tab completion - 'enhanced' equivalent in bash?

I really like tcsh's: set completion='enhanced' because it treats underscores and dash signs the same. I don't have to reach for the shift key when trying to complete files that have underscores. As far as I know, there is nothing like this in bash. Does such a thing exist in bash? If... (2 Replies)
Discussion started by: sarnobat
2 Replies

6. Shell Programming and Scripting

Tab completion in csh

Is it possible to set up my .cshrc so that a single tab attempts to autocomplete, while a double tab gives a list of all possible options. In other words, I want it to work like bash in this regard. Thanks! (3 Replies)
Discussion started by: James McMurray
3 Replies

7. UNIX for Dummies Questions & Answers

Tab completion gubbins

Hello all How do you configure unix terminal to list files as you tab complete. I'm using a unix terminal at work and when i first started tab complete on a folder would list all matches if there were more than one. eg. monkey.xml mon.xml monkeyboy.xml in one folder if i cd into... (2 Replies)
Discussion started by: GNUless
2 Replies

8. UNIX for Dummies Questions & Answers

Tab Completion on Solaris 10

Hi, Is there a way to turn on tab completetion on Solaris 10? (2 Replies)
Discussion started by: annointed3
2 Replies

9. UNIX for Dummies Questions & Answers

tab completion using ! history command

Hi all, I recently discovered the ! command. I think it's great that !cd ? will match the last command that began with cd ?. However, for ! to be particularly useful to me (for now anyway) it would be nice if there was a tab completion option available (as with the cd command). Does anyone know... (3 Replies)
Discussion started by: x-375HK-x
3 Replies

10. UNIX for Advanced & Expert Users

Tab Completion showing files that Dont Exist

Has anyone seen this before? if i ls a particular directory (an email Maildir) i get a long list of files, if i 'du -h' that same directory, i get messages like: du: `./1053894791.17207_0.srweb,S=6199': No such file or directory strange. so using tab will complete this filename too, giving... (3 Replies)
Discussion started by: dittonamed
3 Replies
Login or Register to Ask a Question