ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] q: file vs shared-mime-info
@ 2011-03-11 14:27 Michael Shigorin
  2011-03-11 15:25 ` Yuri N. Sedunov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Shigorin @ 2011-03-11 14:27 UTC (permalink / raw)
  To: devel

	Здравствуйте.
file -bi test.sh выдаёт test/x-shellscript, в то время как в
/usr/share/mime/globs присутствует application/x-shellscript;
в итоге приходится подставлять костыли вместо аккуратного
преобразования.

Аналогично из уже найденного:
application/x-bzip2 -- application/x-bzip
text/x-c -- text/x-csrc
text/x-diff -- text/x-patch
text/x-shellscript -- application/x-shellscript

Кто-нить в курсе, за чем должен быть приоритет (если в принципе
существует авторитетный источник)?  Пошёл было в b.fd.o, но решил
переспросить -- вдруг неправ file.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] q: file vs shared-mime-info
  2011-03-11 14:27 [devel] q: file vs shared-mime-info Michael Shigorin
@ 2011-03-11 15:25 ` Yuri N. Sedunov
  0 siblings, 0 replies; 2+ messages in thread
From: Yuri N. Sedunov @ 2011-03-11 15:25 UTC (permalink / raw)
  To: devel

В Птн, 11/03/2011 в 16:27 +0200, Michael Shigorin пишет:
> 	Здравствуйте.
> file -bi test.sh выдаёт test/x-shellscript, в то время как в
> /usr/share/mime/globs присутствует application/x-shellscript;
> в итоге приходится подставлять костыли вместо аккуратного
> преобразования.
> 
> Аналогично из уже найденного:
> application/x-bzip2 -- application/x-bzip
> text/x-c -- text/x-csrc
> text/x-diff -- text/x-patch
> text/x-shellscript -- application/x-shellscript
> 
> Кто-нить в курсе, за чем должен быть приоритет (если в принципе
> существует авторитетный источник)?  Пошёл было в b.fd.o, но решил
> переспросить -- вдруг неправ file.

Подобных примеров есть еще, -- file еще не любит XML, например.
$ test-mime /usr/share/gnome-games/swell-foop/*.js
File "/usr/share/gnome-games/swell-foop/About.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Board.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Light.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/main.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Path.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Score.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/Settings.js" has a mime-type of application/javascript
File "/usr/share/gnome-games/swell-foop/ThemeLoader.js" has a mime-type of application/javascript

[aris@arisbook PTLens]$ file -i /usr/share/gnome-games/swell-foop/*.js 
/usr/share/gnome-games/swell-foop/About.js:       text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Board.js:       text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Light.js:       text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/main.js:        text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Path.js:        text/plain charset=us-ascii
/usr/share/gnome-games/swell-foop/Score.js:       text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/Settings.js:    text/x-c++ charset=us-ascii
/usr/share/gnome-games/swell-foop/ThemeLoader.js: text/plain charset=us-ascii

-- 
Yuri N. Sedunov



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-11 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-11 14:27 [devel] q: file vs shared-mime-info Michael Shigorin
2011-03-11 15:25 ` Yuri N. Sedunov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git