171 Commits

Author SHA1 Message Date
ianmacd
8b8547237a - _cvs(): assign to $changed() and $newremoved() as arrays, not scalars 2002-03-01 07:55:36 +00:00
ianmacd
0363d0203c - a few more changes to _cvs() from Kyle Wheeler <memoryhole@mac.com>
(e.g. cvs checkout now descends through the CVSROOT) and some code clean-up
  to _cvs() by me
2002-03-01 06:58:23 +00:00
ianmacd
a2d62dae9b - expand _function() with typeset/declare completion 2002-03-01 01:02:39 +00:00
ianmacd
b90ac0362b - large clean-up of sed and awk usage throughout code, where interpolating a
shell variable that contained a / would cause the sed or awk command to fail,
  since it expected the / as its own delimiter. Use | instead.
2002-03-01 00:42:13 +00:00
ianmacd
e450032829 - _cd() was not correctly completing on subdirs of $CDPATH (why is this
function so damn hard to get right? :-) )
- _configure() suffered a sed error when completing on options of the type
  --option=PATH
2002-02-28 22:37:10 +00:00
ianmacd
272633960b - Kyle Wheeler <memoryhole@mac.com> submitted a large _cvs() patch with many
improvements. I rewrote this and fixed a few bugs found on the way.
2002-02-28 22:23:14 +00:00
ianmacd
b85f049d30 - minor typo corrected in _longopt()
- stop eval error in _expand() when parameter ends with a \
2002-02-28 05:39:10 +00:00
ianmacd
bd5f78e80e - _man(): quote $manpath to avoid premature expansion and remove local
variable $i
2002-02-27 21:36:10 +00:00
ianmacd
e2f04f8fd1 - updated release to 20020227 2002-02-27 15:59:49 +00:00
ianmacd
6e7b485c5c - more code clean-up. Replace many instances of compgen -[df] by calls to
_filedir and removed a few more potential compgen error areas.
2002-02-27 15:48:20 +00:00
ianmacd
c00299c0a3 - _command(): call _filedir() when subcompletion commands return no matches 2002-02-27 15:28:26 +00:00
ianmacd
00c983ff96 - _root_command() wasn't passing name of command that had called it to
_command()
2002-02-27 10:01:21 +00:00
ianmacd
17dcab80ec - make psql completion perform default bash completion if all else fails 2002-02-27 09:34:17 +00:00
ianmacd
59f672285f - simplify _root_command() and actually install it for use by sudo 2002-02-27 08:55:30 +00:00
ianmacd
e5b34db64e - add dpkg completion, based largely on code submitted by Laurent Martelli
<laurent@bearteam.org>
2002-02-27 06:47:09 +00:00
ianmacd
c6602afe92 - _make(): add long option completion
- cleaned up _configure(), _longopt() and _gcc()
2002-02-27 01:18:08 +00:00
ianmacd
0f4d4d3dd4 multiple potential causes of compgen errors removed 2002-02-27 01:02:43 +00:00
ianmacd
128690832c - minor bug fixes to _make()
- multiple potential compgen error clean-ups
2002-02-27 00:41:56 +00:00
ianmacd
2d0f63f8b3 - _rpm(): removed some superfluous returns
- _apt-cache(): renamed _apt_cache and caught some potential compgen errors
- _apt-get(): renamed _apt_get and caught some potential compgen errors
2002-02-27 00:24:04 +00:00
ianmacd
f0af45516a - _rpm(): major clean-up, including removal of dashify()
- _rpm(): fix bug that caused --prefix, --relocate and --root to not complete
  on directories
2002-02-27 00:14:52 +00:00
ianmacd
d29b19a324 - clean up superluous returns in _ipsec() 2002-02-26 23:35:39 +00:00
ianmacd
844c7bb6b2 - _find(): code clean-up and removal of potential compgen errors 2002-02-26 23:29:54 +00:00
ianmacd
54ef11bb25 prevent compgen errors in _chown(), _chgrp and _man()
fix [ ] test in _chown() and _chgrp() that should have been [[ ]] test
2002-02-26 23:13:04 +00:00
ianmacd
9d299d53cd code clean-up
prevent compgen error in _man()
2002-02-26 22:59:47 +00:00
ianmacd
d2cf29b671 sudo now calls _root_command(), which is a wrapper around _command(), but also
sets the PATH to include {,/usr{,/local}}/sbin
2002-02-26 22:21:39 +00:00
ianmacd
cc9bfa1465 add cardctl completion 2002-02-26 20:48:32 +00:00
ianmacd
92f3a2e8fb updated release to 20020225 2002-02-25 05:50:23 +00:00
ianmacd
3a0e91f6a5 _rpm(): fixed minor bug in --re{build,compile}/--clean/--rms{ource,pec} that
caused compgen error when passed parameter with hyphens
2002-02-24 19:52:22 +00:00
ianmacd
64c42032e2 _psql(): try to get list of valid users from Postgres before resorting to
system user list
2002-02-24 05:43:48 +00:00
ianmacd
f99b5193cd modified _filedir() and _longopt() to allow mkdir and rmdir to complete only
on directories
2002-02-22 15:48:21 +00:00
ianmacd
aa73cdba0c _cd(): sigh, completion on dirs and subdirs of entries in $CDPATH was broken
yet again, this time due to the space having been removed from local $IFS.
  This is fixed now, but there's still a bug remaining, namely that completion
  does not work correctly if dirs or subdirs of entries in $CDPATH contain
  embedded spaces
_longopt(): install completion for {mk,rm}dir as -o filenames, not dirnames
2002-02-22 07:41:05 +00:00
ianmacd
2ae196062c _tar(): prevent error if user tries to complete on first parameter using a
string like -x (compgen sees the -x as an option to itself)
2002-02-21 19:26:36 +00:00
ianmacd
0a9fda5e8c _known_hosts(): fix bug where defaulting to standard hostname completion
would yield a compgen error
2002-02-20 18:09:45 +00:00
ianmacd
b489ac4cff update release to 20020220 2002-02-20 05:41:50 +00:00
ianmacd
591939ead3 _longopt(): add irb to list of commands
_longopt(): refine sed command that filters long options
2002-02-20 05:26:08 +00:00
ianmacd
705b6b76ff _man(): manpath doesn't exist on Sorceror Linux, so use man --path instead 2002-02-20 02:56:08 +00:00
ianmacd
4351ae5a0b _function(): declare won't allow a function that starts with a '-', so use
type instead
2002-02-20 00:12:52 +00:00
ianmacd
96860dc0e5 _rpm(): some clean up 2002-02-19 21:49:13 +00:00
ianmacd
56b80cfc22 take signal completion from _killall() and put it in _signals()
_killall() now calls _signals()
new _kill() function for kill completion
_killall() now only completes on signals if parameter starts with a '-'.
  It would previously return process names AND signals for a blank parameter.
2002-02-19 17:37:15 +00:00
ianmacd
76ae44282e _man(): remove compgen -G glob in favour of compgen -f -X 2002-02-18 22:40:23 +00:00
ianmacd
01d816ff59 _tar(): eradicate use of compgen -G in favour of compgen -f -X 2002-02-18 18:21:14 +00:00
ianmacd
930f3a8cbd _rpm(): more removal of compgen -G in favour of compgen -f -X 2002-02-18 18:07:37 +00:00
ianmacd
a1c8489a45 vastly simplify _rpm()'s local file_glob() function by removing compgen -G
glob in favour of a compgen -f -X construction
2002-02-18 17:55:25 +00:00
ianmacd
0d6c8060b2 check that $modpath directory can be entered in _insmod() 2002-02-18 17:36:00 +00:00
ianmacd
c3562cad68 only install route completion if running Linux
check for existence of make before installing its completion
2002-02-18 17:26:54 +00:00
ianmacd
61df287dcd check for Linux before installing killall completion
check for existence of cvs before installing its completion
clean up _longopt()
clean up _gcc()
clean up _configure()
2002-02-18 10:09:59 +00:00
ianmacd
a1b836f526 _configure_func() now calls _longopt(), rather than duplicating code 2002-02-18 08:39:02 +00:00
ianmacd
cc35ff1679 remove _redir_op() and _redir_test() 2002-02-18 08:32:56 +00:00
ianmacd
047dd09493 $prev wasn't local to _psql() 2002-02-18 08:27:09 +00:00
ianmacd
386ad4b44a mkdir and rmdir now bound to _longopt(), default to dirnames
a2ps, autoconf, automake, bc, gprof, ld, nm, objcopy, objdump, readelf, strip,
  bison, cpio, diff, patch, enscript, cp, df, dir, du, ln, ls, mkfifo, mknod,
  mv, rm, touch, vdir, xargs, awk, gperf, grep, gpg, grub, indent, less, m4,
  sed, shar, date, env, seq, su, tee, uname, who, texindex, cat, csplit, cut,
  expand, fmt, fold, head, md5sum, nl, od, paste, pr, ptx, sha1sum, sort,
  split, tac, tail, tr, unexpand, uniq, wc, units and rsync now all have
  GNU long option completion from _longopt()
gpc completion added into _gcc()
cat, less, more, ln and strip no longer bound to _filedir()
2002-02-18 08:26:34 +00:00