home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / tclsrc / compat.tcl < prev    next >
Encoding:
Text File  |  1993-11-19  |  1.1 KB  |  31 lines

  1. #
  2. # compat --
  3. #
  4. # This file provides commands compatible with older versions of Extended Tcl.
  5. #------------------------------------------------------------------------------
  6. # Copyright 1992-1993 Karl Lehenbauer and Mark Diekhans.
  7. #
  8. # Permission to use, copy, modify, and distribute this software and its
  9. # documentation for any purpose and without fee is hereby granted, provided
  10. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  11. # Mark Diekhans make no representations about the suitability of this
  12. # software for any purpose.  It is provided "as is" without express or
  13. # implied warranty.
  14. #------------------------------------------------------------------------------
  15. # $Id: compat.tcl,v 3.0 1993/11/19 07:00:13 markd Rel $
  16. #------------------------------------------------------------------------------
  17. #
  18.  
  19. #@package: TclX-Compatibility execvp assign_fields
  20.  
  21. proc execvp {progname args} {
  22.     error "The execvp command is outdated, use the execl command directly"
  23. }
  24. proc assign_fields {list args} {
  25.     if [lempty $args] {
  26.         return
  27.     }
  28.     return [uplevel lassign [list $list] $args]
  29. }
  30.