From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: Re: Coreutils-like File Completion
Date: Wed, 4 Oct 2017 20:34:39 -0400 [thread overview]
Message-ID: <c831f26d-076c-56a7-2509-8725c5370fa6@gmx.com> (raw)
In-Reply-To: <CANBm1TZZG5ApM07erWOvAYJ3SV5k-pTtKJqixxYj35D6_6ZBTQ@mail.gmail.com>
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).
next prev parent reply other threads:[~2017-10-05 0:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 0:24 Noam Barnea
2017-10-05 0:34 ` Eric Cook [this message]
2017-10-05 13:37 ` Leah Neukirchen
2017-10-05 19:56 ` Bart Schaefer
2017-10-06 11:28 ` Leah Neukirchen
2017-10-06 16:21 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c831f26d-076c-56a7-2509-8725c5370fa6@gmx.com \
--to=llua@gmx.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).