IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New bash tab completion question
On ubuntu server I have a problem with command line complete after a "perl -c". Tab tab gives options:
ie: adds an initial '-' and then shows:

-0 -c -d -e -h -I -m -n -P -S -u -v -w -x
-a -C -D -F -i -l -M -p -s -T -U -V -W -X
blech@ub-svr-1:~/devel/carnival$ perl -c -

If I give it the 1st char of a perl script in the dir:
perl -c m<TAB><TAB>
it does nothing - no match attempted.

This is specific to perl. Any other command (or nonsensical trash) will complete, with our without the -c.

WTF?
Expand Edited by crazy Oct. 19, 2006, 09:08:32 PM EDT
New man bash
It has programmable command completion, configured by a builtin called 'complete'. 'complete -p' shows the full list and 'complete -p perl' shows it calls a bash function called _perl to offer options. 'declare -f _perl' confirms this.

It seems to be quite clever, but clearly not what you want. If you need the -c before your command, then I think the bash completion hasn't been configured smart enough.

Wade.
"Don't give up!"
New Bleurgh
===

Kip Hawley is still an idiot.

===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
Expand Edited by drewk Oct. 19, 2006, 11:52:31 PM EDT
     bash tab completion question - (crazy) - (2)
         man bash - (static)
         Bleurgh -NT - (drewk)

I have a phone that doesn't ring, a line that doesn't sting, a letter never sent... I have a dream where snowflakes fall inside a painted hall... HA! THAT DON'T PAY THE RENT!
123 ms