Shell Path Autocomplete w/ Variables


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell Path Autocomplete w/ Variables
# 1  
Old 02-23-2009
Shell Path Autocomplete w/ Variables

Suppose there exists a file, "/home/andrew/product/test". And suppose I set $FOO to "/home/andrew/product/"? I can't seem to type "$FOO/t" and then Escape (csh) in order to autocomplete.

Is this possible in other shells? If not, then why? If so, then why can't csh do it, and how can I make it work?

Thank you.
# 2  
Old 02-23-2009
Both bash and ksh can do that (don't have a zsh available to test). csh, as always, seems to be a "special" shell.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cp command autocomplete

Hi I'm still new around bash and Ubuntu, but I was expecting for the "cp" command to have an autocomplete feature like the ls command. Should it, or I'm assuming too much? In case it doesn't have by default, is there a way to enable it? Cheers (2 Replies)
Discussion started by: blackfox2015
2 Replies

2. Solaris

Solaris 11 + PATH enviroments variables

Ok, this is the little annoying. I can't set up $PATH variable for all non root users on Solaris 11 express. oracle@DevelopBox01:/export/home/oracle$ cat /etc/default/login ........ # PATH sets the initial shell PATH variable #... (6 Replies)
Discussion started by: solaris_user
6 Replies

3. Shell Programming and Scripting

unix Library path variables.

Library path variables. I need to know the library rnvironment variable in linux. Ie, I install zlib directory in the custom path /usr/local/mylib and give --enable-zlib in the ffmpeg install, ffmpeg should check for the zlib libraries in the path /usr/local/mylib. Currently it checks /usr/lib... (5 Replies)
Discussion started by: anilcliff
5 Replies

4. Solaris

autocomplete Path on UNIX (TRU64)

Hi, i need autocmplete file_name/dir_name by TAB key. I work on UNIX (TRU64) and I just tried to type on .profile this setting: set autolist but it doesn't work. I think it is because this command doesn't belong to this UNIX version (sure it works for example on HP-UX). I need to set it... (0 Replies)
Discussion started by: D4vid
0 Replies

5. UNIX for Dummies Questions & Answers

VIM, autocomplete before a word

Hi there, I'm learning PHP now. $var_name is how to declare a variable. I was wondering if there is any convenient way in vim to autocomplete the dollar sign($) before a word. Something like, after typing var_name, then press some key, for example Tab, to automatically add a doller sign... (4 Replies)
Discussion started by: hz_i3
4 Replies

6. UNIX for Dummies Questions & Answers

$path tied to $PATH in C shell?

Hi: It seems that the shell variable $path is tied to the environment variable $PATH in C shell. Is this true? Is there a way to keep them separated so changes in $PATH won't be reflected in $path? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. UNIX for Dummies Questions & Answers

path variables

I'm looking for an explanation to what appears to be some kind of shell substitution values found in various path environment variables such as PATH, CDPATH, MANPATH, etc. These values appear as things like %T, %S, %N, %L. I'm not sure what these mean, and have searched through a multitude of man... (6 Replies)
Discussion started by: sszd
6 Replies

8. UNIX for Dummies Questions & Answers

How to configure the AutoComplete Command

Hello All, I'm using the Solaris 8 and I'd like to know how to configure my KSH to use the double ESC to complete the command automatically. Do you know how do it?? thanks. rgs, Paulo (1 Reply)
Discussion started by: PAulo Trombetta
1 Replies

9. Shell Programming and Scripting

History and AutoComplete

Hi, I enabled the Autocomplete of filename by the command set -o emacs But i couldn't enjoy the benifits of vi anymore. i.e I couldn't get the command history by pressing Esc and k. How to enjoy both of this features at a time.? Regards Karthik (3 Replies)
Discussion started by: fermisoft
3 Replies

10. Linux

autocomplete - bash

Hi all I have installed Red Hat Linux Advanced Server 2.1 onto a Proliant DL580 (dual XEON 2.8GHz processors). The bash shell is not autocompleting filenames/directorynames when I hit escape twice. History (via Ctrl+r works). Is there a setting somewhere to enable this? Thanks. (2 Replies)
Discussion started by: saabir
2 Replies
Login or Register to Ask a Question