Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to complete backquote, etc. using compsys?



On Aug 23, 10:49am, Oliver Kiddle wrote:
}
} No, you didn't miss an option. The new completion system just doesn't
} complete the backquote.  [...]  At the moment, I don't think the shell
} code can tell if it is in $( .. )

Yes, it can tell that it's in $(...) or `...`.  It doesn't complete the
trailing backtick or closing paren because there's no way to tell when
you're really at the end of the expression.  How is it supposed to know
whether you mean
    `cat /var/run/inetd.pid` 
or whether you're going to go on with more of the command, as in
    `cat /var/run/inetd.pid /var/run/sshd.pid`
or the like?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author