home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!pipex!bnr.co.uk!bnrgate!corpgate!crchh327!tdoan
- From: tdoan@bnr.ca (Tuan Doan)
- Subject: Strange error for null returned result
- Message-ID: <1992Dec18.025847.26643@bnr.ca>
- Keywords: TCL/TK, error, null, eval, exec, fgrep
- Sender: news@bnr.ca (News on crchh327)
- Nntp-Posting-Host: crchh404
- Organization: Bell-Northern Research, Richardson, Tx.
- Date: Fri, 18 Dec 1992 02:58:47 GMT
- Lines: 30
-
- Hello,
-
- I think I encountered a very strange error condition in TCL/TK 2.3 For
- the following logic:
-
- set t1 [eval exec "/bin/fgrep $pat /tempdir/clip.ps"]
-
- works correctly if $pat exist in clip.ps When fgrep could not find any
- match and return null?, I get the following error:
-
- while executing
- "exec /bin/fgrep adobe /tempdir/clip.ps"
- ("eval" body line 1)
- invoked from within
- "eval exec /bin/fgrep adobe /tempdir/clip.ps"
- invoked from within
- "set t1 "[eval exec /bin/fgrep $pat /tempdir/clip.ps]..."
-
- I was wondering if anyone else encountered this problem. If so, what is
- the fix for it?
-
- Thanks,
-
- __ __/ / / __ / | / Tuan T. Doan
- / / / / / / | / Advance Signalling Design
- / / / __ / / | / 2201 Lakeside Blvd. P.O. Box 833871
- __/ ______/ __/ __/ __/ __/ Richardson, TX 75083-3871
- Phone: 6-444-4575/214-684-4575
- Internet: tdoan@bnr.ca Fax: 6-444-3716/214-684-3716
- or tdoan@x400gate.bnr.ca
-