X-Face errors
Dear Folks,
my ~/.muttrc contained:
my_hdr X-Face: '`cat ~/.mutt/X-Face`'
where ~/.mutt/X-Face contains the data:
/lmvoO32b}(X!.MN;O|[1oYb65lA}&k;iT[sJ(\BKHvf}7G3;y~lr>rN&=Zk"gecdZ2]#HE
FMFpoyE=o5;l-4?_aEs_%W1)h['{t',8*ti2x&Ci\/QD*u-F[7!6f424Bn}DL>]_b-HyE3\L],0xP&
1\VXeSDS)Qa+%M;@j#gI.qYP*.&9mRQI=`0&_qEq20p[)mI;_qnI?8o1#~n[3BV}\87``;'c/^Nk}B
zd@xk~O/gscH#lR-:sP\EjrQV7>yE5P:X/SiLh8.0=Y
and I also tried putting the X-Face data directly:
my_hdr X-Face:
'/lmvoO32b}(X!.MN;O|[1oYb65lA}&k;iT[sJ(\BKHvf}7G3;y~lr>rN&=Zk"gecdZ2]#HE
FMFpoyE=o5;l-4?_aEs_%W1)h[\'{t\',8*ti2x&Ci\/QD*u-F[7!6f424Bn}DL>]_b-HyE3\L],0xP&
1\VXeSDS)Qa+%M;@j#gI.qYP*.&9mRQI=`0&_qEq20p[)mI;_qnI?8o1#~n[3BV}\87``;\'c/^Nk}B
zd@xk~O/gscH#lR-:sP\EjrQV7>yE5P:X/SiLh8.0=Y'
But mutt would always complain along the lines of:
error in /home/nicku/.muttrc, line 104: O|[1oYb65lA}&k: unknown
command
I quoted all the ' inside the ''s with a backslash, but still same
results. It seems that mutt does not behave according to the manual,
at least, as far as I understand:
Single quotes (') and double quotes (") can be used to quote strings
which contain spaces or other special characters. The difference
between the two types of quotes is similar to that of many popular
shell programs, namely that a single quote is used to specify a
literal string (one that is not interpreted for shell variables or
quoting with a backslash [see next paragraph]), while double quotes
indicate a string for which should be evaluated. For example,
backtics are evaluated inside of double quotes, but not for single
quotes.
\ quotes the next character, just as in shells such as bash and zsh.
For example, if want to put quotes ``"'' inside of a string, you can
use ``\'' to force the next character to be a literal instead of
interpreted character.
I expected that quoting in double quotes, and putting backslashes
before all single quotes in the string would keep everything kosher.
I obviously misunderstand something. Please put me right.
--
Nick Urbanik RHCE nicku(at)vtc.edu.hk
Dept. of Information & Communications Technology
Hong Kong Institute of Vocational Education (Tsing Yi)
Tel: (852) 2436 8576, (852) 2436 8713 Fax: (852) 2436 8526
PGP: 53 B6 6D 73 52 EE 1F EE EC F8 21 98 45 1C 23 7B ID: 7529555D
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24