Comment 2 for bug 1054584

Revision history for this message
In , Ecki-k (ecki-k) wrote :

cron logs (error mail) lines like (translated):

/etc/cron.daily/hplip_cron: line 17: [: -gt: unary operator expected.

when system language is not english.

Reproducible: Always

Steps to Reproduce:
1. export both LANG and LC_ALL as non-english ('de_DE.UTF8' in my case) in /etc/profile.env
2. have cron execute /etc/cron.daily/hplip_cron
Actual Results:
cron sends email:

/etc/cron.daily/hplip_cron: line 17: [: -gt: unary operator expected.

Expected Results:
no error message at all

add the following lines:

# make "du" show the result we try to grep for
LANG=C
LC_ALL=C

before line 18 of the cron script.