parsing fails on a package name with no lowercase letters
Bug #1092290 reported by
Peter Budny
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
g-CTAN |
New
|
Undecided
|
Unassigned |
Bug Description
In create_
for oldpacks in $(sed -e "/^.*[a-z].*/d" "${TLPDBDIR}
is troublesome when there is a package name that contains no letters. I found one such package to be "GS1". This will cause line 48:
if [ ${oldpacks} -lt ${G_RR} ]
to fail with the message:
/usr/share/
Fix:
Change the sed expression from
"/^.*[a-z].*/d"
to
"/^.*[a-zA-Z].*/d"
(Although I'm not sure why it isn't more restrictive, i.e. actually looking for "^name [a-zA-Z0-9]+$")
To post a comment you must log in.