5 May 2010 17:55
Bash completion
Joel J. Adamson <adamsonj <at> email.unc.edu>
2010-05-05 15:55:46 GMT
2010-05-05 15:55:46 GMT
<#secure method=pgpmime mode=sign>
Hello,
When I source /usr/share/doc/nmh-1.3/COMPLETION-BASH I get the following
error:
somehost: ~ > source /usr/share/doc/nmh-1.3/COMPLETION-BASH
bash: /usr/share/doc/nmh-1.3/COMPLETION-BASH:23: syntax error near unexpected token `('
bash: /usr/share/doc/nmh-1.3/COMPLETION-BASH:23: ` \++([a-zA-Z_]) )'
There seem to be a lot of unbalanced parentheses in this file; I have
fixed those I could find (see attached patch). However after I source
it again I get this error:
bash: have: command not found
The first line of the file is "have show &&"
Is this a portability issue (is "have" a builtin command for some
installations of bash? I can't find it in any documentation), or am I
not supposed to source it? How else would I load it?
The zsh completion worked really well, so using mh from the command-line
was a breeze. However, since switching to bash I have not had
completion and it's now a chore (for when I'm not using Emacs).
Thanks for any help you can offer,
Joel
(Continue reading)
RSS Feed