From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25386 invoked by alias); 5 Oct 2017 13:54:40 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41815 Received: (qmail 17302 invoked by uid 1010); 5 Oct 2017 13:54:39 -0000 X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(195.159.176.226):SA:0(-1.1/5.0):. Processed in 3.068202 secs); 05 Oct 2017 13:54:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gcszd-zsh-workers@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Leah Neukirchen Subject: Re: Coreutils-like File Completion Date: Thu, 05 Oct 2017 15:37:07 +0200 Message-ID: <87h8vdogvw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) In-Reply-To: (Eric Cook's message of "Wed, 4 Oct 2017 20:34:39 -0400") Eric Cook writes: > On 10/04/2017 08:24 PM, Noam Barnea wrote: >> Since coreutils-8.24 (as far as I can tell from the Coreutils git), ls >> escaped filenames with single quotes instead of backslashes. On zsh (zsh >> 5.4.2 stable, freshly installed) escaped filenames in filename completion >> (typing cd then pressing Tab) are still escaped with backslashes. I think >> the Coreutils standard should be followed as it is more shell-friendly and >> promotes better, more efficient commandline practices. >> > > Quoting, what i am assuming that you are referring to, spaces, with single quotes > or backslashes results in the space not being treated syntactically in all > bourne-like shells. one isn't more "shell-friendly" than the other. > > On another note, if you type an ' before pressing tab, zsh will still > complete the filename > and add the closing ' if an file is selected, the closing ' won't be > added if the selected item > is an directory (since you may attempt to do further completion). This only seems to happen without compinit, anyone know how to revert to this behavior and still use compinit? (With compinit, ' is removed on TAB and the completion uses \ here...) -- Leah Neukirchen http://leah.zone