home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
- From: karl@NeoSoft.com (Karl Lehenbauer)
- Subject: Re: Strange error for null returned result
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Sat, 19 Dec 1992 02:41:23 GMT
- Message-ID: <BzHJH4.159@NeoSoft.com>
- Keywords: TCL/TK, error, null, eval, exec, fgrep
- References: <1992Dec18.025847.26643@bnr.ca> <1992Dec18.090123@adaclabs.com>
- Lines: 17
-
- >In article <1992Dec18.025847.26643@bnr.ca>, tdoan@bnr.ca (Tuan Doan) writes:
- >|> 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"...
-
- Yeah, a non-zero exit of a child from exec is treated as an error. You
- can use catch to catch the error if you'd like.
-
- It is a bug that there is no error message; the error message should start
- with something like "child returned nonzero exit stats".
- --
- -- Email info@NeoSoft.com for info on getting interactive Internet access.
- "In a minute, I'll burp up your droid."
-