From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18677 invoked by alias); 24 Sep 2016 21:58:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21969 Received: (qmail 29717 invoked from network); 24 Sep 2016 21:58:13 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com 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(66.111.4.26):SA:0(0.0/5.0):. Processed in 0.130611 secs); 24 Sep 2016 21:58:13 -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=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: larryv@macports.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at macports.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=rZnp9Ihf5k5O2fG ywJFEmWyEkKs=; b=LTjXe+ieiK0YvcAC7+nLDaECibRFl/ellfk0yq+4tL3bQeq Tucfg5z1ZhFHH+rFPfFn2+4uFNihym9D2sxiix66XFlkTnerpMpfwu2yRnhxHBh6 oaaLxCqYuLU1xAeEzANysI4Vgr2iAxGVpu1spJHPcZ4xqtG28R5DsgbXJPrs= X-Sasl-enc: IgBdLx5aUua4lG9khJB93ZrJIPkvF8CJwdDKQcwGbz9k 1474754289 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Feature request: set extension for =( ) created file From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= In-Reply-To: <160924142449.ZM29236@torch.brasslantern.com> Date: Sat, 24 Sep 2016 17:58:09 -0400 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <5DAA9DE3-11A7-441F-A12C-FD4731859C7E@macports.org> References: <4DC55226-A041-42E5-B8B1-3AB1E7E6AB53@macports.org> <2225F03B-B940-40CF-8582-2FF912CA01E6@macports.org> <160924142449.ZM29236@torch.brasslantern.com> To: Bart Schaefer X-Mailer: Apple Mail (2.3124) > On Sep 24, 2016, at 5:24 PM, Bart Schaefer = wrote: >=20 > On Sep 24, 4:36pm, Lawrence Velazquez wrote: > } A few lines (of C!) to reliably detect dozens/hundreds/thousands of = file > } formats? Okay. >=20 > I think Sebastian is asking for a way to change the file name returned > by =3D(...) 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.) >=20 > 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=