home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!ppcnet!ppcger!sepp
- From: sepp@ppcger.ppc.sub.org (Josef Wolf)
- Newsgroups: comp.os.linux
- Subject: expr broken -> trouble with cnews
- Message-ID: <BzIH6M.9Hv@ppcger.ppc.sub.org>
- Date: 19 Dec 92 14:49:33 GMT
- Organization: PPC Cooperation
- Lines: 21
-
- Hello!
-
- Expr have a problem with the command
-
- expr <number> : '.*\(.....\)$'
-
- when the matched part of <number> start with the character '0'.
- This causes trouble with the cnews-scripts 'recovact' and 'upact'.
-
- For a temporary fix you can replace the offending lines with
-
- min=`echo 00000$min | sed 's/.*\(.....\)$/\1/'` ;; # upact
-
- and
-
- max="`echo 0000000000$new | sed 's/.*\('$dots'\)$/\1/'`" # recovact
-
- Is there any patch for expr to cure the problem instead of the symptoms?
-
- Greetings
- Sepp
-