home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 21206 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  852 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!ppcnet!ppcger!sepp
  2. From: sepp@ppcger.ppc.sub.org (Josef Wolf)
  3. Newsgroups: comp.os.linux
  4. Subject: expr broken -> trouble with cnews
  5. Message-ID: <BzIH6M.9Hv@ppcger.ppc.sub.org>
  6. Date: 19 Dec 92 14:49:33 GMT
  7. Organization: PPC Cooperation
  8. Lines: 21
  9.  
  10. Hello!
  11.  
  12. Expr have a problem with the command
  13.  
  14.       expr <number> : '.*\(.....\)$'
  15.  
  16. when the matched part of <number> start with the character '0'.
  17. This causes trouble with the cnews-scripts 'recovact' and 'upact'.
  18.  
  19. For a temporary fix you can replace the offending lines with
  20.  
  21.       min=`echo 00000$min | sed 's/.*\(.....\)$/\1/'` ;;  # upact
  22.  
  23. and 
  24.  
  25.       max="`echo 0000000000$new | sed 's/.*\('$dots'\)$/\1/'`"  # recovact
  26.  
  27. Is there any patch for expr to cure the problem instead of the symptoms?
  28.  
  29. Greetings
  30.     Sepp
  31.