diff options
author | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
---|---|---|
committer | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
commit | f25b19db8d50748d4f75272ae324cad27788d9b3 (patch) | |
tree | cef0bba69f1833802f43364a0cde6945601e665a /contrib/tcl/generic/tclFileName.c | |
parent | 539e1e66ff6f99c987c8e03872ddaea5260db8f7 (diff) |
Notes
Diffstat (limited to 'contrib/tcl/generic/tclFileName.c')
-rw-r--r-- | contrib/tcl/generic/tclFileName.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/tcl/generic/tclFileName.c b/contrib/tcl/generic/tclFileName.c index 69d825cdac41..2024b61ce350 100644 --- a/contrib/tcl/generic/tclFileName.c +++ b/contrib/tcl/generic/tclFileName.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * SCCS: @(#) tclFileName.c 1.31 97/08/05 15:23:04 + * SCCS: @(#) tclFileName.c 1.32 97/08/19 18:44:03 */ #include "tclInt.h" @@ -1229,7 +1229,16 @@ Tcl_GlobCmd(dummy, interp, argc, argv) result = TclDoGlob(interp, separators, &buffer, tail); if (result != TCL_OK) { if (noComplain) { + /* + * We should in fact pass down the nocomplain flag + * or save the interp result or use another mecanism + * so the interp result is not mangled on errors in that case. + * but that would a bigger change than reasonable for a patch + * release. + * (see fileName.test 15.2-15.4 for expected behaviour) + */ Tcl_ResetResult(interp); + result = TCL_OK; continue; } else { goto done; |