Re: Mailcap question: should %s be quoted?
On Mon, Apr 18, 2005 at 10:18:22PM +0200, Almut Behrens wrote:
> I still don't seem to be able to reproduce the problem.
Here's what I did:
$ strace mutt -a 'test doc.pdf' moseley 2>strace.out
Accept the address, enter some subject and then exit my editor
(vim) and down arrow to highlight the attached file and hit
return.
Then after exiting mutt:
$ fgrep test strace.out
execve("/usr/bin/mutt", ["mutt", "-a", "test doc.pdf", "moseley"], [/* 22 vars */]) = 0
stat64("test doc.pdf", {st_mode=S_IFREG|0644, st_size=111204, ...}) = 0
open("test doc.pdf", O_RDONLY|O_LARGEFILE) = 3
stat64("test doc.pdf", {st_mode=S_IFREG|0644, st_size=111204, ...}) = 0
open("test doc.pdf", O_RDONLY|O_LARGEFILE) = 3
stat64("test doc.pdf", {st_mode=S_IFREG|0644, st_size=111204, ...}) = 0
stat64("test doc.pdf", {st_mode=S_IFREG|0644, st_size=111204, ...}) = 0
read(3, " test=test -n \"$DISPLAY\"\nimage/x"..., 4096) = 2385
lstat64("/tmp/test_doc.pdf", 0xbfffda50) = -1 ENOENT (No such file or directory)
waitpid(31137, Error: Couldn't open file 'test'
stat64("test doc.pdf", {st_mode=S_IFREG|0644, st_size=111204, ...}) = 0
Notice that message from xpdf above for just 'test'. This is what is
happening:
$ xpdf test doc.pdf
Error: Couldn't open file 'test'
Mutt 1.5.8i (2005-02-12)
--
Bill Moseley
moseley@hank.org
Reply to: