| Summary: | When using a backslash (\) to escape a percent-sign (%), vixie cron passes the escape character to the command | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Eric Pretorious <epretorious> |
| Component: | [OLD] Core system | Assignee: | Cron Team <cron-bugs+disabled> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Eric Pretorious
2004-06-26 18:12:00 UTC
Step #2 *should* read: 2. create command: 0 * * * * /bin/mailx -s "Message from `hostname` (`date '+\%A, \%B \%d \%Y'`)" admin@leaguehost.net This appears to be a feature... AFAICS, vixie-cron only replaces % with a newline when it's not inside a quoted string. When you're using "" or '' the \ is unnecessary. vixie-cron 4.1 seems to handle this better. |