Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mailcap configuration in zsh can't open .bk files
- X-seq: zsh-users 17959
- From: shawn wilson <ag4ve.us@xxxxxxxxx>
- To: vinurs <haiyuan.vinurs@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: mailcap configuration in zsh can't open .bk files
- Date: Thu, 29 Aug 2013 23:27:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=l7A4jbwdhad86yFc+d9wwBXHOmSauDGDdPgaXYkruOg=; b=HVZTI+N07vjlrlKRpiZJXoDRGL/nUt1IREiYBEYcd+Gdx2vS3V4Xr2Pcny3k2KlS35 vs/KcxZLRMK7x5EaqKhebv/0re93Uj999F4ZQxeNIwNmDho6SGfJK1RC2AvOC3kCisl+ 5a/ly/oojo1DhFx76PtlZ2H+lKkiKSFLbzGkDgqvxkP2VQu1/lCSRgmKRl0PoNg5/md9 y3YAPVVBa/LzTSvhXnIveN8NJ4al42I32jNPWxgd7XonFBUs7ThB0xOBwVTDcWqdNURc GZBBo7W+ThrnMhjEy29BFqWCqaJ3/HFJ3Lshp3uJsN7cxlE3gYAVdu91BDJoYMANZMNK 3Lmw==
- In-reply-to: <20130830025918.GA35749@redoubt.spodhuis.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAA=69Zen1zin38+49gtP9WbSE3n9vE0J1FYTpPY705smKvC81Q@mail.gmail.com> <20130830025918.GA35749@redoubt.spodhuis.org>
Magic isn't 100% anyway. It's best to use extensions unless you're doing
forensics.
On Thu, Aug 29, 2013 at 10:59 PM, Phil Pennock <
zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> On 2013-08-30 at 09:12 +0800, vinurs wrote:
> > then in zsh, I can open pdf files, but ,when I mv test.pdf to
> test.pdf.bk,
> > It can not be opened.
> > I use file --mime-type test.pdf.bk, It shows:
> > test.pdf.bk: application/pdf
>
> The `file` command looks inside the content of a file and uses a complex
> set of rules to try to figure out what sort of file it is.
>
> The normal approach of MIME handling on Unix is to use the filename
> extension to figure out the type of file. There are *two* files of
> interest: `mailcap` files say what to do with a MIME type, `mime.types`
> files say what MIME type should be assumed for a given extension.
>
> The pathnames to these files and other information can be found in the
> zshcontrib(1) manual-page:
>
> % man zshcontrib
>
> and search for "MIME FUNCTIONS".
>
> -Phil
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author