[Users] Date fix script grep error
subscript at free.fr
Sun Jan 13 14:36:36 CET 2019
On Sun, 13 Jan 2019 14:33:18 +0200 Paul Steyn <paulsteyn1 at afrihost.co.za> wrote:
> Hi All,
> I get some mails with a missing "Date" header, so I just installed the
> "Fix missing date" script from here:
> However, I was getting a "grep: Invalid range end" error, even though
> the script seemed to be fixing the mails correctly. After a little
> investigation, I found that grep doesn't seem to like the "[-+]" found
> in the two "$DATE_REGEXP_STRICT" and "$DATE_REGEXP" regexen, as it
> wants hyphens to be at the end of bracket expressions, or it
> considers them part of range expressions. Simply changing this to "[+-]"
> seemed to fix the issue.
> This is with grep (GNU grep) 3.3 on Arch Linux. As this is documented
> behaviour in the grep manpage, it seems to be a safe and portable
> I've made the change on my side, and as I mentioned it doesn't seem to
> cause anything but an ignorable error message, but I thought this should
> for completeness sake be corrected in the original.
> I'm not sure who the maintainer for that script is (if there is one),
> or what the process for submitting this as a bug would be, so if anyone
> in the know could make the change (or provide reasons why not to), or
> point me in the right direction, I'd appreciate it.
Hah! Thanks for reporting, will fix that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the Users