home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Applications / Alpha.5.96 folder / Help / Shells < prev    next >
Encoding:
Text File  |  1994-09-04  |  2.2 KB  |  60 lines  |  [TEXT/ALFA]

  1.  
  2.     TCL SHELL
  3.  
  4. The basic idea of the Tcl Shell is to provide an interactive way to access 
  5. TCL, it is *NOT* intended to serve as a pseudo-unix-shell. However, I don't 
  6. use MPW or AU/X, and therefore I implemented a few very useful unix shell 
  7. functions. 
  8.  
  9. All pathnames must be mac pathnames; relative pathnames start 
  10. with colons, absolute pathnames don't. For instance, ':file1' specifies a 
  11. file named 'file1' in the current directory. '::file2' specfies a file in 
  12. the parent directory, and ':::file3' is a file in the parent's parent's 
  13. directory. Additionally, hitting the tab key w/ a partial pathname invokes 
  14. a filename-completion function that tries to fill in the rest of the 
  15. characters of the name. 
  16.  
  17. The supported functions are all valid Tcl commands and the following:
  18.  
  19. cd <relative or absolute pathname>
  20.     Change directory. If called w/ no arguments, go to home directory if no 
  21.     arguments.
  22. cp <file1> <file2>
  23.     or
  24. cp <file1> .... <destDir>
  25.     Basic unix functionality, recursive.
  26.  
  27. grep <pat> <file>...
  28.     Grep, reasonably slow.
  29.  
  30. ls [-F|l] [<file>]...
  31.     Two, mutually exclusive flags. '-F' just gives the normal display, with 
  32.     a '*' behind applications and a '/' behind directories (folders). '-l' 
  33.     presents a long listing, including sizes of both forks, creator, file 
  34.     type, and last modification time. 'procs.tcl' includes functions 'l' and 
  35.     'll' which serve as my Unix aliases to 'ls -F' and 'ls -l'.
  36.     
  37. mv <file1> <file2>
  38.     or
  39. mv <file1> .... <destDir>
  40.     Moves a file, potentially across volume boundaries. Recursive.
  41.     
  42. ps
  43.     Prints a list of active applications.
  44.     
  45. rm [-r] <file>...
  46.     Removes files and empty directories. "-r" allows recursive removal, but 
  47.     DON'T BLAME ME IF YOU DELETE YOUR ENTIRE DRIVE!
  48.     
  49. wc <file>...
  50.     'wc' primitive from unix, counts lines, words, characters.
  51.  
  52. The file "shell.tcl" contains Tcl code implementing the shell interface. 
  53. You can change this to suit your tastes. One recent goody is that you can 
  54. re-execute previous commands merely by moving the cursor to the line and 
  55. hitting the return key. If there is no '>' character on the line when you 
  56. hit a carriage return, the return is an ordinary new line.
  57.  
  58. A primitive history mechanism can be used to move up and down the last 20 
  59. commands by using control-uparrow and control-downarrow at a prompt.
  60.