Sponsored Content
Full Discussion: Bash Tab Completion Hanging
Top Forums UNIX for Dummies Questions & Answers Bash Tab Completion Hanging Post 302870669 by Raz716 on Monday 4th of November 2013 11:32:24 AM
Old 11-04-2013
That makes sense, but in that case, why would a specific character take so much longer than any other character? I'll try removing directories from my PATH to see if I can figure out the bottleneck.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. Shell Programming and Scripting

link scripts to file extensions for tab completion

Is there a way to link a script in my ~/bin with file extension priority for tab completion? for example, if the script I have could only look at .tex files, and I have 6 files in the same directory with the same name, but different extensions: index.tex index.dvi index.toc ... etc... it... (0 Replies)
Discussion started by: pyramation
0 Replies

8. Shell Programming and Scripting

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? (8 Replies)
Discussion started by: dagigg
8 Replies

9. 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

10. 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
pathfind(3GEN)					     String Pattern-Matching Library Functions					    pathfind(3GEN)

NAME
pathfind - search for named file in named directories SYNOPSIS
cc [ flag ... ] file ... -lgen [ library ... ] #include <libgen.h> char *pathfind(const char *path, const char *name, const char *mode); DESCRIPTION
The pathfind() function searches the directories named in path for the file name. The directories named in path are separated by colons (:). The mode argument is a string of option letters chosen from the set [rwxfbcdpugks]: +-----------------------------+-----------------------------+ |Letter |Meaning | +-----------------------------+-----------------------------+ |r |readable | +-----------------------------+-----------------------------+ |w |writable | +-----------------------------+-----------------------------+ |x |executable | +-----------------------------+-----------------------------+ |f |normal file | +-----------------------------+-----------------------------+ |b |block special | +-----------------------------+-----------------------------+ |c |character special | +-----------------------------+-----------------------------+ |d |directory | +-----------------------------+-----------------------------+ |p |FIFO (pipe) | +-----------------------------+-----------------------------+ |u |set user ID bit | +-----------------------------+-----------------------------+ |g |set group ID bit | +-----------------------------+-----------------------------+ |k |sticky bit | +-----------------------------+-----------------------------+ |s |size non-zero | +-----------------------------+-----------------------------+ Options read, write, and execute are checked relative to the real (not the effective) user ID and group ID of the current process. If name begins with a slash, it is treated as an absolute path name, and path is ignored. An empty path member is treated as the current directory. A slash (/) character is not prepended at the occurrence of the first match; rather, the unadorned name is returned. EXAMPLES
Example 1: Example of finding the ls command using the PATH environment variable. To find the ls command using the PATH environment variable: pathfind (getenv ("PATH"), "ls", "rx") RETURN VALUES
The pathfind() function returns a (char *) value containing static, thread-specific data that will be overwritten upon the next call from the same thread. If the file name with all characteristics specified by mode is found in any of the directories specified by path, then pathfind() returns a pointer to a string containing the member of path, followed by a slash character (/), followed by name. If no match is found, pathname() returns a null pointer, ((char *) 0). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
sh(1), test(1), access(2), mknod(2), stat(2), getenv(3C), attributes(5) NOTES
The string pointed to by the returned pointer is stored in an area that is reused on subsequent calls to pathfind(). The string should not be deallocated by the caller. When compiling multithreaded applications, the _REENTRANT flag must be defined on the compile line. This flag should only be used in mul- tithreadedapplications. SunOS 5.10 10 Mar 1999 pathfind(3GEN)
All times are GMT -4. The time now is 11:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy