home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!paladin.american.edu!gatech!swrinde!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!eff!news.oc.com!utacfd.uta.edu!rwsys!jmd386!jdoss
- From: jdoss@jmd386.lonestar.org (Joe M. Doss)
- Subject: Re: expr broken -> trouble with cnews
- References: <BzIH6M.9Hv@ppcger.ppc.sub.org>
- Organization: JD's home system
- Date: Mon, 21 Dec 1992 22:43:37 GMT
- Message-ID: <1992Dec21.224337.1680@jmd386.lonestar.org>
- Lines: 33
-
- In article <BzIH6M.9Hv@ppcger.ppc.sub.org> sepp@ppcger.ppc.sub.org (Josef Wolf) writes:
- >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
- >
-
- This was fixed with version 1.7 of the GNU shellutils. Just get the lastest
- version (I think it's 1.8, now) from your friendly neighborhood GNU archive,
- run config & make.
-
- --
- ---------------------------------------------------------------------------
- | Joe M. Doss, Jr. (standard disclaimer applies) |
- | jdoss@jmd386.lonestar.org <insert cute quote here> |
- ---------------------------------------------------------------------------
-