I'm trying to get some efficient auto-completing going here, and have hit upon a bit of a snag.
I've got a command for setting two things at once. The first is a relatively small list, but the second, if not filtered by the first, is unmanageably huge.
What I want to be able to do is pass what's already been typed or auto-completed for the first argument to the second autocomplete command...
complete job 'p/1/`listJobs`/' 'p/2/`listTasks`/'
What I want to be able to do is pass the job that has already been entered for the first argument to the 'listTasks' command.
Any idea how I can do this?
(this is a repost from an old SuperUser.com question of mine that nobody ever answered... The SuperUser question can be found here)