DATE: December 19, 1986 FROM: Frank R. Borger Instrumentation Section Head TO: ECR users RE: Change To ECR I have complete a modification to ECR to let one do command line alteration. What I have included is a clone of what massage does. A description of its operation follows. As part of its startup proceedure, ECR attempts to read the file ECR.CMD from the current UIC. This file can contain up to 24 different massage commands. The command lines must have the following format. XXX
where: XXX Is the Pseudo Command Name. It must be 3 characters long followed by a space. Header Is a text string that will precede the user's Command line. It is terminated by a tilde "~" character. Y/N Must be a Y or a N. Y specifies that ".*;*" should be added after the user's command line, only if the text from the user did not contain a period. (Effectively adds wild card spe- cifications to PIP commands if user does not specify a file type.) Trailer Is a text string that will be added af- ter the users command line. (The tilde terminator is optional.) In operation ECR will compare the first three characters of the users command line with the massage command lines from ECR.CMD. If a match is found, ECR will strip the leading 3 or more char- acter command name and any subsequent spaces from the users com- mand line, and then assemble the final command line in the fol- lowing order. Header, users command, optional .*;* string, tra- iler. That command will be sent to the system. Also note the following. 1. All command lines must be in upper case. 2. Command names from the keyboard may have more than 3 char- acters, (only the first three are significant.) 3. The wild card flag and the trailer are optional. 4. The Header is not optional, but can be no characters if the tilde is the first character after the space. 5. The back-quote character, "`" will cause the users command line, (less the command name part,) to be duplicated in the command line. This facilitates the use of a file name 2 or 3 times for macro, fortran compiles, etc. 6. Storage limitations are 24. lines of up to 30. characters each. 7. Long conversion commands can actually use more than 30 char- acters, but characters 31 thru 33 will be taken as a new command name in by the command search mechanism. 8. The massage function does not alter the previous 20 user's commands. They are still stored as typed from the keyboard. 9. ^Y will cause ECR to list the current contents of the mas- sage command buffer. 10. ^N will cause ECR to erase and re-read the contents of the massage command buffer, (so that you can have different de- faults for different UIC's.) Some examples follow. Given the following ECR command file: DIF DIR ~Y/FU~ RNO RNO ~N=` RNT RNO TI:=~ MEM RNP ~N=DP1:[102,1]MEMO MAC MAC ~N,`/-SP=' User command Resultant command ------------ --------------------------- dif xyz DIR XYZ.*;*/FU dif abc.abc DIR ABC.ABC/FU rno file RNO FILE=FILE rnt file RNO TI:=FILE mem harry RNP HARRY=DP1:[102,1]MEMO mac file MAC FILE,FILE/-SP=FILE FRB/pdp