home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21379 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.os.linux
  2. 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
  3. From: jdoss@jmd386.lonestar.org (Joe M. Doss)
  4. Subject: Re: expr broken -> trouble with cnews
  5. References: <BzIH6M.9Hv@ppcger.ppc.sub.org>
  6. Organization: JD's home system
  7. Date: Mon, 21 Dec 1992 22:43:37 GMT
  8. Message-ID: <1992Dec21.224337.1680@jmd386.lonestar.org>
  9. Lines: 33
  10.  
  11. In article <BzIH6M.9Hv@ppcger.ppc.sub.org> sepp@ppcger.ppc.sub.org (Josef Wolf) writes:
  12. >Hello!
  13. >
  14. >Expr have a problem with the command
  15. >
  16. >      expr <number> : '.*\(.....\)$'
  17. >
  18. >when the matched part of <number> start with the character '0'.
  19. >This causes trouble with the cnews-scripts 'recovact' and 'upact'.
  20. >
  21. >For a temporary fix you can replace the offending lines with
  22. >
  23. >      min=`echo 00000$min | sed 's/.*\(.....\)$/\1/'` ;;  # upact
  24. >
  25. >and 
  26. >
  27. >      max="`echo 0000000000$new | sed 's/.*\('$dots'\)$/\1/'`"  # recovact
  28. >
  29. >Is there any patch for expr to cure the problem instead of the symptoms?
  30. >
  31. >Greetings
  32. >    Sepp
  33. >
  34.  
  35. This was fixed with version 1.7 of the GNU shellutils.  Just get the lastest
  36. version (I think it's 1.8, now) from your friendly neighborhood GNU archive,
  37. run config & make.
  38.  
  39. -- 
  40. ---------------------------------------------------------------------------
  41. |     Joe M. Doss, Jr.                     (standard disclaimer applies)  |
  42. |  jdoss@jmd386.lonestar.org                  <insert cute quote here>    |
  43. ---------------------------------------------------------------------------
  44.