[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

158.0. "Shell" by CGFSV1::DREW (Steve Drew) Wed Nov 05 1986 16:44

	For those of you who hack around alot with Amiga dos and
	hate swapping disks or wasting memory with a ram disk. And
	like a more VMS/UNIX style of commands/wildcarding/Aliases ect.
		Shell is for you!

	This is Matt Dillon's csh (Shell) version 2.03 that I have
	manxified, modified added more commands. I use it completely.
	- It has search paths capability (even under 1.1) for external
	  commands. 
	- Has it's own script file commands (better that amigados), with
	  'on error' type of handling.
	- The best part of it of course is it's about 30k and has all the
	  commands you need so that you hardly ever need the c:commands.
	- Alias are great: 
		alias vt "run df1:vt100 vt100.init"	run vt100 in backgrnd
		alias d  "dir -s"		4 collum short directory.


		THE FILES
		---------

	Shell.doc:  read it completely.

	_AMIGA has all the command names in amigados style.
	_UNIX has the command names in Matt's original format 
		eg. cat is type, mv is rename ....ect.
    
    	.11 means it's for workbench 1.1 and .12 is for workbench 1.2.
	(I had to modify the fexecv() function under manx since it dies
	under 1.2.)

	The 1.2 Version has Full COMMAND LINE editing which I just finished
	writing, can't live without it. (Same as VMS only better.)

	The files are executable, so use Dave's VT100 and kermit and
	you all set.

	They can be found here:

CGFSV1::DISK$73G:[DREW.SHELL]

SHELL.DOC;1              45   5-NOV-1986 10:35
SHELL_AMIGA.11;1         59   5-NOV-1986 10:21
SHELL_AMIGA.12;1         64   5-NOV-1986 10:22
SHELL_UNIX.11;1          59   5-NOV-1986 10:23
SHELL_UNIX.12;1          64   5-NOV-1986 10:25

Total of 5 files, 291 blocks.

Warning:	

	1. Read the doc file.
	2. have you stack size about 10k before invoking Shell.
		eg. in s:startup-sequence

			Stack 10000
			Shell s:login.com  ;my login file (all my aliases)

Enjoy,
Steve.

T.RTitleUserPersonal
Name
DateLines
158.11.1 Command Line Editting?NOVA::RAVANThu Nov 06 1986 12:264
    Are you going to put command line editting in the 1.1 version?
    please?
    
    -jim
158.2Sorry, no can doCGFSV1::DREWSteve DrewThu Nov 06 1986 14:1621
  >  Are you going to put command line editting in the 1.1 version?
  >  please?
  >  
  >  -jim
   
	
  I wish I could. But with 1.2 there is a new function for the console
  driver which allows you to change it from a CON: window (which only returns
  to your program after a return has been entered) to a RAW: window which
  allows you to track every key, window resizing ect..
  What I do is change the window to RAW just when entering commands
  while the command is running be it internal or external command I change
  it back to a CON: window which is what external programs are expecting.

  The only way it could be done with 1.1 is to open a new RAW window
  but thats messy, then you have two windows kicking arround and that
  also would mean alot of code changes to the rest of program. And by
  the time I had that done you'd probably have 1.2 in your hands.

  -Steve.
158.3AUTHOR::MACDONALDCUP/MLThu Nov 06 1986 23:335
    Works well, although I wish you could incorporate some sort of command
    line buffer using the UP arrow key as with VMS. Hate retyping a
    long command line after having made a typo.
    
    Paul
158.4Shell 2.05M availableCGFSV1::DREWSteve DrewWed Jan 21 1987 20:2326

    
    See readme file for new features. Again the only difference between
    _Amiga & _Unix versions is the command names for _Amiga have been
    renamed to there fimiliar AmigaDos names rather than their unix
    equivalents.
    
    		_Unix version	_Amiga version
    		   rm		   delete
    		   mv		   rename
                   cat             type

    (The documentation reflects the unix name.)
    
    Of course all commands can be abreviated or aliased.
    
    the files are in CGFSV1::DISK$73G:[DREW.SHELL]

		    README.205M;2          
		    SHELL.DOC;8            
		    SHELL_AMIGA.205M;1     
		    SHELL_UNIX.205M;1      

	enjoy    
    	/Steve.