Changeset 3179:26bc01c85ce5 for alias.c
Legend:
- Unmodified
- Added
- Removed
-
alias.c
r3173 r3179 142 142 /* 143 143 * if someone has an address like 144 * From: Michael `/bin/rm -f ~` Elkins <me@ cs.hmc.edu>144 * From: Michael `/bin/rm -f ~` Elkins <me@mutt.org> 145 145 * and the user creates an alias for this, Mutt could wind up executing 146 146 * the backtics because it writes aliases like 147 * alias me Michael `/bin/rm -f ~` Elkins <me@ cs.hmc.edu>147 * alias me Michael `/bin/rm -f ~` Elkins <me@mutt.org> 148 148 * To avoid this problem, use a backslash (\) to quote any backtics. We also 149 149 * need to quote backslashes as well, since you could defeat the above by 150 150 * doing 151 * From: Michael \`/bin/rm -f ~\` Elkins <me@ cs.hmc.edu>151 * From: Michael \`/bin/rm -f ~\` Elkins <me@mutt.org> 152 152 * since that would get aliased as 153 * alias me Michael \\`/bin/rm -f ~\\` Elkins <me@ cs.hmc.edu>153 * alias me Michael \\`/bin/rm -f ~\\` Elkins <me@mutt.org> 154 154 * which still gets evaluated because the double backslash is not a quote. 155 155 *
