When executing external commands in perl, if there are no special shell
characters perl executes the command directly, but there is no
/usr/bin/command so it fails. You can see this if you try to strace the
script. If there are special characters like redirections (I've added
apostrophe in this
Le Sun, May 26, 2024 at 05:35:28PM +0300, Yair Yarom a écrit :
>
> The function MagicMimetype always fails because the `command -v file` isn't
> executed inside a shell (rather, perl searches for the "command" binary, and
> fails to find it).
Thanks Yair for the patch. I confirm it works.
Can
Package: mailcap
Version: 3.70+nmu1.huji
Severity: normal
Tags: patch
Dear Maintainer,
The function MagicMimetype always fails because the `command -v file` isn't
executed inside a shell (rather, perl searches for the "command" binary, and
fails to find it).
Attached is a patch that fixes this.
3 matches
Mail list logo