Description of problem: I couldn't find "date" in the components, please file where appropriate I can see that there is a %n for newline and a %t for tab, but I do not see a %whatever to indicate a space. I am trying to do a `date +%d%b%y %T` and it barks over the T. I can get what I want by {`date +%d%b%y` 'date +%T`}, but this seems silly to have to call date twice just to get a space inbetween. The padding doesn't help as far as I can see Version-Release number of selected component (if applicable): How reproducible: [...] | mail -s "whatever `date +%d%b%y %T`" whoever.localhost Steps to Reproduce: 1. 2. 3. Actual results: Error Expected results: "whatever 08jul11 23:14" Additional info: Thanks in advance, Paul
That's just a shell quoting issue. You want: mail -s "whatever `date '+%d%b%y %T'`" whoever.localhost cheers
[pained look of "egg on face"] tested and, course, this is what I should have done rather than submitting a bug. I appreciate your correcting my misuse of shell Thanks, Paul
btw. if you want to know a name of component in future, consider using something like rpm -qf `which date` (replace date with the utility you are interested in) , which will let you know which package provides the commandline utility. As there is only 1 component per source rpm, repoquery -s <package name> might be useful as well.
Thanks for the suggestion. I gave it a test drive and it definitely will help my bug-reporting (I know I can use the help!)