Inserting quotes somewhere in the middle of a command-line argument is no
different than putting quotes around the entire thing.  The shell strips
them and considers whitespace in the middle to not be an argument boundary.
 You can omit the quotes completely from the mailcap rule and update-mime
will add them appropriately.

-- Brian

On Mon, Aug 29, 2011 at 12:08, Uwe Kerstan <uwe.kers...@gmx.de> wrote:

> Package: mime-support
> Version: 3.48-1
>
> --- Please enter the report below this line. ---
>
> $ see --debug /usr/share/pixmaps/gnome-debian.png
>  - parsing parameter "/usr/share/pixmaps/gnome-debian.png"
>  - Reading mime.types file "/home/user/.mime.types"...
>  - Reading mime.types file "/etc/mime.types"...
>  - extension "png" maps to mime-type "image/png"
>  - Reading mailcap file "/etc/mailcap"...
> Processing file "/usr/share/pixmaps/gnome-debian.png" of type "image/png"
> (encoding=none)...
>  - checking mailcap entry "image/png; display 'png:'%s''; test=test -n
> "$DISPLAY""
>  - program to execute: display 'png:'%s''
>  - running test: test -n "$DISPLAY"  (result=0=true)
>  - executing: display 'png:'/usr/share/pixmaps/gnome-debian.png'
> sh: Syntax error: Unterminated quoted string
> Warning: program returned non-zero exit code #2
>
> It is missing an apostrophe at the end of the executing command line.
>
>
> --- System information. ---
> Architecture: amd64
> Kernel:       Linux 2.6.32-5-amd64
>
> Debian Release: 6.0.2
>  500 stable          security.debian.org
>  500 stable          ftp.de.debian.org
>
> --- Package information. ---
> Package's Depends field is empty.
>
> Recommends       (Version) | Installed
> ==========================-+-============
> file           (>= 3.27-3) | 5.04-5
>
>
> Package's Suggests field is empty.
>
>
>
>


-- 
  Brian
  bcwh...@pobox.com
------------------------------------------------------------------------------------------
*Treat someone as they are and they will remain that way.
Treat someone as they can be and they will become that way.*

Reply via email to