From: unobe@cpan.org
To: 9front@9front.org
Subject: Re: [9front] [PATCH 4/6] walk: quote name and path using N and P; use quotefmt and free()
Date: Thu, 28 Sep 2023 09:53:59 -0700 [thread overview]
Message-ID: <A5E5CFE9914E5896703FF0769A635F03@smtp.pobox.com> (raw)
In-Reply-To: <7013B5AE5BFE88BDC863FC7B977C8CFC@eigenstate.org>
Quoth ori@eigenstate.org:
> Quoth unobe@cpan.org:
> > I had sent an earlier version of this around August 10. Moody helped
> > me on gridchat with some finer points, and figured I'd send it out
> > again along with the other patches I've been accumulating.
>
> I think the last time this was brought up, I wasn't convinced
> of the need for a change here; the motivating example didn't
> actualy work. `{} doesn't evaluate quotes.
>
> How do you plan to use this?
>
For one, it has made it easier to plumb/send files. It's not perfect
when a quote is in the filename because rio/acme doesn't span two
singlequotes when selecting, but it does make it faster for files with
other quoted characters, like spaces. Most often through no fault of
my own, I have to deal with alien file names that have spaces. So
when creating a script still using `\n like below, having the
output quoted makes it easy to select the file to plumb/send:
for (f in `'
'{walk-n 1 -emNs -f /usr/glenda}) echo $f
1660336534 acme.dump 0
1695882474 diff.patch 654
1695918225 'test this out' 0
Perhaps that could be why ls(1) has the default as quoting the file
name when needed, and yet does provide -Q for cases when that's not
desired. This would give walk(1) a similar knob to turn.
prev parent reply other threads:[~2023-09-28 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 5:15 Romano
2023-09-28 7:02 ` unobe
2023-09-28 16:13 ` ori
2023-09-28 16:53 ` unobe [this message]
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=A5E5CFE9914E5896703FF0769A635F03@smtp.pobox.com \
--to=unobe@cpan.org \
--cc=9front@9front.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.
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).