While I am in bash , I am able to do a tab complete with environment variable names, but with ksh I am not able to do so. How can I get it done with KSH? I am using mksh with cygwin.
Asked
Active
Viewed 1,180 times
1
-
The MirBSD (and PD on which it's based) implementation of `ksh` doesn't support it. Use the `zsh` or AT&T implementation instead. – Stéphane Chazelas Sep 23 '13 at 16:43
-
1Since you have Cygwin, why not use bash (which IIRC is installed by default) or install zsh? – Gilles 'SO- stop being evil' Sep 23 '13 at 20:55
-
My problem is , I am put into a learning window where I am asked to get trained in KSH with the limited resources that I have, in this case cygwin :). – user917279 Sep 24 '13 at 07:26
1 Answers
1
mksh author here (again) ☻
Tab completion in mksh is deliberately deterministic: the first word on the line (or after certain characters like ) and ;) is completed as a command by default, all other words are completed as filenames by default.
However, once you wrote a variable name, e.g. echo $PWD_ (where _ is your cursor) and press Tab, the variable will (since a couple of versions) be expanded inline (e.g. to echo /_ if you’re in the root directory).
Feel free to visit mksh’s IRC channel (pointed out at the end of its manpage) in addition… there is no mksh tag here yet, so I’m only looking in here occasionally.
mirabilos
- 1,723
- 15
- 33