From: "Lawrence Velázquez" <larryv@macports.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: Feature request: set extension for =( ) created file
Date: Sat, 24 Sep 2016 17:58:09 -0400 [thread overview]
Message-ID: <5DAA9DE3-11A7-441F-A12C-FD4731859C7E@macports.org> (raw)
In-Reply-To: <160924142449.ZM29236@torch.brasslantern.com>
> On Sep 24, 2016, at 5:24 PM, Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> On Sep 24, 4:36pm, Lawrence Velazquez wrote:
> } A few lines (of C!) to reliably detect dozens/hundreds/thousands of file
> } formats? Okay.
>
> I think Sebastian is asking for a way to change the file name returned
> by =(...) and still have it automatically removed, not a way to figure
> out TO WHAT to change the name.
That sounds much more feasible, but how might the caller choose the new
temporary name?
> } (FWIW, file(1) -- a whole program/library made expressly for this
> } purpose -- gives me hilariously bad results on a regular basis.)
>
> Yes, "file" is generally a lot better at figuring out what a file is
> NOT than what a file IS. Still, it's the best thing we have lying
> around.
Yeah, I didn't mean to hate on file(1) so much as assert the difficulty
of the task.
vq
next prev parent reply other threads:[~2016-09-24 21:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-24 17:51 Sebastian Gniazdowski
2016-09-24 17:55 ` Vadim Zeitlin
2016-09-24 18:43 ` Lawrence Velázquez
2016-09-24 19:30 ` Sebastian Gniazdowski
2016-09-24 19:55 ` Lawrence Velázquez
2016-09-24 20:14 ` Sebastian Gniazdowski
2016-09-24 20:36 ` Lawrence Velázquez
2016-09-24 20:44 ` Sebastian Gniazdowski
2016-09-24 21:06 ` Lawrence Velázquez
2016-09-24 21:24 ` Bart Schaefer
2016-09-24 21:58 ` Lawrence Velázquez [this message]
2016-09-25 0:05 ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25 5:17 ` Bart Schaefer
2016-09-25 6:17 ` Sebastian Gniazdowski
2016-09-25 15:21 ` Lawrence Velázquez
2016-09-26 18:03 ` Bart Schaefer
2016-09-25 16:58 ` Nikolay Aleksandrovich Pavlov (ZyX)
2016-09-25 22:37 ` Bart Schaefer
2016-09-24 21:06 ` Bart Schaefer
2016-09-24 18:56 ` Sebastian Gniazdowski
2016-09-24 18:22 ` 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=5DAA9DE3-11A7-441F-A12C-FD4731859C7E@macports.org \
--to=larryv@macports.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@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).