Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: set extension for =( ) created file
> On Sep 24, 2016, at 5:24 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author