home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / editor / alpha513.cpt / Help / Shells < prev    next >
Text File  |  1992-10-20  |  2KB  |  46 lines

  1. TCL SHELL 
  2.  
  3. The basic idea of the Tcl Shell is to provide an interactive way to access 
  4. TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I don't 
  5. use MPW or AU/X, and therefore I implemented a few very useful unix shell 
  6. functions. 
  7.  
  8. All pathnames must be mac pathnames; relative pathnames start 
  9. with colons, absolute pathnames don't. For instance, ':file1' specifies a 
  10. file named 'file1' in the current directory. '::file2' specfies a file in 
  11. the parent directory, and ':::file3' is a file in the parent's parent's 
  12. directory. Additionally, hitting the tab key w/ a partial pathname invokes 
  13. a filename-completion function that tries to fill in the rest of the 
  14. characters of the name. 
  15.  
  16. The supported functions are all valid Tcl commands and the following:
  17.  
  18. cd <relative or absolute pathname>
  19.     Change directory. Pathnames must be 
  20. cp <file1> <file2>
  21.     or
  22. cp <file1> .... <destDir>
  23.     Basic unix functionality. Not recursive.
  24.  
  25. ls [-Fl] [<file>]...
  26.     Two, mutually exclusive flags. '-F' just gives the normal display, with 
  27.     a '*' behind applications and a '/' behind directories (folders). '-l' 
  28.     presents a long listing, including sizes of both forks, creator, file 
  29.     type, and last modification time. 'procs.tcl' includes functions 'l' and 
  30.     'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
  31.     
  32. mv <file1> <file2>
  33.     Moves a file, potentially across volume boundaries. Not recursive.
  34.     
  35. rm <file>...
  36.     Removes files and empty directories. Currently no way to recursively 
  37.     remove (although you could code up a TCL proc to do this).
  38.     
  39.  
  40. The file "shell.tcl" contains Tcl code implementing the shell interface. 
  41. You can change this to suit your tastes. One recent goody is that you can 
  42. re-execute previous commands merely by moving the cursor to the line and 
  43. hitting the return key. If there is no '>' character on the line when you 
  44. hit a carriage return, the return is an ordinary new line.
  45.  
  46.