home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / tcl / 2142 < prev    next >
Encoding:
Text File  |  1992-12-20  |  1.4 KB  |  43 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!pipex!bnr.co.uk!bnrgate!corpgate!crchh327!tdoan
  3. From: tdoan@bnr.ca (Tuan Doan)
  4. Subject: Strange error for null returned result
  5. Message-ID: <1992Dec18.025847.26643@bnr.ca>
  6. Keywords: TCL/TK, error, null, eval, exec, fgrep
  7. Sender: news@bnr.ca (News on crchh327)
  8. Nntp-Posting-Host: crchh404
  9. Organization: Bell-Northern Research, Richardson, Tx.
  10. Date: Fri, 18 Dec 1992 02:58:47 GMT
  11. Lines: 30
  12.  
  13. Hello,
  14.  
  15.    I think I encountered a very strange error condition in TCL/TK 2.3   For
  16. the following logic:
  17.  
  18.    set t1 [eval exec "/bin/fgrep $pat /tempdir/clip.ps"]
  19.  
  20. works correctly if $pat exist in clip.ps   When fgrep could not find any
  21. match and return null?, I get the following error:
  22.  
  23.     while executing
  24. "exec /bin/fgrep adobe /tempdir/clip.ps"
  25.     ("eval" body line 1)
  26.     invoked from within
  27. "eval exec /bin/fgrep adobe /tempdir/clip.ps"
  28.     invoked from within
  29. "set t1 "[eval exec /bin/fgrep $pat /tempdir/clip.ps]..."
  30.  
  31. I was wondering if anyone else encountered this problem.  If so, what is
  32. the fix for it?
  33.  
  34. Thanks,
  35.  
  36.  __  __/  /   /   __  /    |   /    Tuan T. Doan
  37.     /    /   /   /   /   / |  /     Advance Signalling Design
  38.    /    /   /   __  /   /  | /      2201 Lakeside Blvd.  P.O. Box 833871
  39. __/  ______/ __/ __/ __/  __/       Richardson, TX 75083-3871
  40.                                     Phone: 6-444-4575/214-684-4575
  41. Internet:  tdoan@bnr.ca             Fax:   6-444-3716/214-684-3716
  42.       or   tdoan@x400gate.bnr.ca    
  43.