kyle.mar...@gmail.com writes:
>> On Wednesday, May 14, 2014 6:00:12 PM UTC-5, Olaf Meeuwissen wrote:
>>
kyle.mar...@gmail.com writes:
>>
>> > Hello all,
>> >
>> > I have a message at "/Users/kms/Mail/
zeck...@gmail.com/[Gmail].All
>> >
> Mail/cur/1390956834_1.10938.highlander,U=2,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S"
>> >
>> > Note the space in "All Mail". --exec doesn't like this:
>> >
>> > $ mu find date:20040823 --exec "cat"
>> > cat: /Users/kms/Mail/
zeck...@gmail.com/[Gmail].All: No such file or
>> > directory
>> > cat:
>> >
> Mail/cur/1390956834_1.10938.highlander,U=2,FMD5=844bb96d088d057aa1b32ac1fbc67b56:2,S:
>> > No such file or directory
>> >
>> > Should I file an issue on GitHub, or is this a configuration issue? I'm
> on
>> > Mac OS X, so it may also be a standards compliance issue.
>>
>> It's the `cat` command that doesn't like the space. To fix this, `mu
>> find` should quote path names or escape characters with special meaning.
>> You can probably work around it with something like
>>
>> mu find date:20040823 --fields="l" | while read filename; do
>> cat
>> done
>
The exact command doesn't matter, really. It the command line parsing
that sees the file name as two separate arguments. For the exact same
reason you are using double quotes around the "mu view" above. Saying