From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2954 invoked from network); 11 Dec 2001 12:21:33 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?Lq9qms155qcQoxWxT1XLx8L8DElqP24j?@203.24.36.3) by ns1.primenet.com.au with SMTP; 11 Dec 2001 12:21:33 -0000 Received: (qmail 2722 invoked from network); 11 Dec 2001 12:21:32 -0000 Received: from sunsite.dk (130.225.247.90) by proxy.melb.primenet.com.au with SMTP; 11 Dec 2001 12:21:32 -0000 Received: (qmail 21366 invoked by alias); 11 Dec 2001 12:21:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4523 Received: (qmail 21354 invoked from network); 11 Dec 2001 12:21:07 -0000 Message-ID: <20011211122104.41288.qmail@web11206.mail.yahoo.com> Date: Tue, 11 Dec 2001 04:21:04 -0800 (PST) From: Michael Wardle Subject: generic filename completion like "foo --file=ba" To: zsh-users@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi. I'm a former bash user starting to learn zsh. I'm currently running zsh 4.0.2 on Red Hat Linux, and zsh seems to be missing a feature I like. In bash, I could do: dd if=root.img of=/dev/f In zsh, pressing the filename completion key (tabulate) does not produce the desired result. It seems to work fine where the filename is separated by whitespace, but not where the filename is embedded in a text string. Many commands (particularly GNU utilities) take arguments in the form --option=value, and value can often be a filename. If I could easily make zsh do this completion, my life would be easier! :-) I searched the archives of this mailing list, and could not find any answer to this question, but over 5000 hits turned up, so I might have missed something. (The closest one is this: but it does not seem to have a satisfactory answer.) Any help (even a pointer to a relevant FAQ) would be most appreciated. Cheers. ===== MICHAEL WARDLE MAIL michael@endbracket.net MOBILE 0415 439 838 WWW http://www.endbracket.net/michael/ __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com