From:	MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 11-MAR-1993 03:09:54.66
To:	Info-VAX@KL.SRI.COM
CC:	
Subj:	Re: FAQ YES?  How to get that UNIX feel?  CORRECTED #2

In article <10MAR199308205577@spades.aces.com>, gavron@ACES.COM writes...
#CORRECTED CODE here 

And still the damn thing keeps stripping periods off the code.  NOW
it's ok.

# 
##In article <C3Mz5K.1or@acsu.buffalo.edu>, v110mhwh@ubvmsb.cc.buffalo.edu 
##(David M Stokes) writes...
###I AM SICK AND TIRED OF PLAYING THE DIR VS. LS -L or SET DEF VS. CD  GAME.  
## 
##	I agree with you 100%.  It is stupid to have different 
##	operating systems appear different.  WHY don't the
##	designers STANDARDIZE or something (like Unix!).
## 
###I am asking for the ftp site or whatever for the location of the
###program that creates the UNIX feel inside the VMS system.  Sound like HERESY?
## 
##	Believe it or not, the DECSHELL routines with POSIX support
##	have this latently in VMS but access to it is secretly guarded.
##	I have a small macro program which makes these available, although
##	as ``DCL symbols'' (like csh aliases).
## 
###I like my UNIX and I don't care who knows.  Of course I like
###VMS, really I do, but the inconvenience is just that.. a pain in the glutes.
## 
##	Yeah!  When you said that I KNEW I had to help you out!
## 
## 
###After such tomfoolery I expect nothing, but perhaps some kind soul with a sense
###of humor could help me out?  
## 
##	OF COURSE!  The program below will allow a NEAR-PERFECT 
##	EMULATION of ALL UNIX COMMANDS.  
## 
###David M. Stokes
## 
##Add these symbol definitions to your LOGIN.COM:
##	$ cd == "$sys$Login:exec cd"
##	$ ls == "$sys$Login:exec ls"
##	...
##	$ command == "$sys$Login:exec command"
## 
## 
##Create the following EXEC.MAR file:
##$ create exec.mar
	.library /sys$Library:lib.mlb/
	pc7: .ascid "save registers"
	pc5: .ascid "maintain status"
	.macro exec_m
	calls #1,g^lib$put_output
	.endm
	pc1: .ascid "handler u$x"
	.entry exec,^m<r2,r3,r4,r5,r6>
	movab pc1,r0
	moval @4(r0),r6
	pushl r6
	movl    #^x6D756420,B^04(R6)
	movw    #^x6572,B^02(R6)
	addl3 #5,(sp),r7
	movw    #^x6570,B^03(R7)
	addl2 #4,sp
	movw    #^x6F43,(R6)
	movw    #^x2064,B^05(R7)
	movl r0,-(sp)
	exec_m
	ret
	.end exec
##^Z
## 
##Then build it:
##$ macro exec
##$ link exec
## 
##Then log out and in, and FULL UNIX BEHAVIOR will be available to you.
## 
##Send checks care of Jeff Killeen, DECUS NLC chair.
## 
## 
##--
##Ehud Gavron        (EG76)     
##gavron@aces.com
##This is Comp.OS.VMS.  Be nice, not technical

