H From:	MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 15-MAR-1993 14:00:24.89 To:	Info-VAX@KL.SRI.COM  CC:	, Subj:	Re: How to prevent symbol substitution   In article <1993Mar15.080715.17475@news.th-darmstadt.de>, sysgaertner@bootes.frm.maschinenbau.th-darmstadt.de (M. Gaertner, FRM, TH Darmstadt, Germany) writes:   > Well, a reply to my own message, that doesn't happen often :-)  Here's what I was hunting after:  P ================================================================================P Note 3438.0  Re: Question in SUBMIT jobs, DCL, copyrights, symbols,   No repliesP LINAC::INFO_VAX                                     122 lines  10-DEC-1991 15:18C Oh, yeah, another neat DCL trick:  Define a symbol, the underscore, F to mean a space, in your command files.  Then any line you are worriedF about the user redefining (like delete--happens all the time), precedeC with an underscore.  Any symbol name would work, but underscores as I initial characters don't seem to occur to people, and it is reminicent of E how DEC used to indicate no-logical-name-translation, and still does: C NL: is the null device, but is subject to logical name redirection; F _NL: is _always_ the null device.  So if your user says something like1 	$ DEL*ETE :== DELETE/CONFIRM	! a common practice 0 your command file will break with something like9 	$	delete/symbol foo	! not all that common, but 'happens.  So, change your file to 
 	$	_ = " " 	$	_ delete/symbol foo= instead of naming every verb you might use, or mangling them: ) 	$	deletecuzIsedso__I_MEAN_IT /symbol foo   I The first trick (batch enhancements) is entirely supported by DEC; like I N said, it's in the manuals.  If you use it, and it breaks, you can legitimatelyI complain to DEC, and you'll be in LOTSA good company, and they'll fix it.   G The latter (underscore quoting symbol) is a mixed bag.  Your definition H is supported, but it relies on an undocumented aspect of the DCL commandH parser.  DEC would be able to change it and thumb their nose at you whenJ you complained that your stuff didn't work, but the change that would makeH that trick fail would break more than half of the command files that DECD wrote, and DOES support, and most likely, does not want to re-write.N In other words, no guarantees, but unbelievably long odds.  I use it, anyways.  , Boy, I really ran off at the fingers today!! --N Steve Suttles                Internet:  steve@dbaccess.com      Dr. DCL is IN!N CROSS ACCESS Corporation     UUCP: {uunet,mips}!troi!steve     Yo speako TECO!N 2900 Gordon Ave, Suite 100   fax: (408) 735-0328              Talk data to me!N Santa Clara, CA 95051-0718   vox: (408) 735-7545   HA! It's under 4 lines NOW!N ============================================================================== That does work even with 5.5-1:  (List of SETHOST.LOG) " THD Maschinenbau FRM CI-VAXcluster   Username: SYSGAERTNER/NOCOM 
 Password:   7     Last interactive login on Monday, 15-MAR-1993 08:49 ;     Last non-interactive login on Monday, 15-MAR-1993 09:14    7 letzte "Neuigkeiten" vom 23-FEB-1993 (Help Neuigkeiten)    % BOO_> set def user$scratch:<gaertner> 	 BOO_> dir   ! Directory USER$SCRATCH:<GAERTNER>   ( NOTES.LIS;3         SETHOST.LOG;1          Total of 2 files.  BOO_> ty*pe :== copy BOO_> ty notes.lis _To: hallo.dat BOO_> dele hallo.dat;  BOO_> _ ty notes.lisF %DCL-W-IVVERB, unrecognized command verb - check validity and spelling  \_\
 BOO_> _ = " "  BOO_> _ ty notes.lisP --------------------------------------------------------------------------------/                                  INFO-VAX Liste P Created: 29-MAY-1991 19:25        11718 topics        Updated: 15-MAR-1993 07:315  Topic  Author               Date         Repl  Title P --------------------------------------------------------------------------------W      1   LINAC::HUCK         29-MAY-1991     0  Welcome to the INFO-VAX List Conference ;      2   LINAC::HUCK         29-MAY-1991     0  MAILTONOTES 0      3                       29-MAY-1991     0  P      4   LINAC::MAILTONOTES  30-MAY-1991     1  CMU-TEK TCP/IP problems with LPRU      5   LINAC::MAILTONOTES  30-MAY-1991     6  RE: DECUS CDroms for non-US customers S      6   LINAC::MAILTONOTES  30-MAY-1991     1  Getting LAT service name - summary. @      7   LINAC::MAILTONOTES  30-MAY-1991     8  Re: talk for VMS:      8   LINAC::MAILTONOTES  30-MAY-1991     2  DECUS LUGs]      9   LINAC::MAILTONOTES  30-MAY-1991     0  Re: A problem with case, in argv[] with VAX C U     10   LINAC::INFO_VAX     30-MAY-1991     4  re: DISKQUOTA questions ... basic ... K     11   LINAC::INFO_VAX     30-MAY-1991     1  Re: Kermit transfer problem  BOO_>  BOO_> _ type notes.lisP --------------------------------------------------------------------------------/                                  INFO-VAX Liste P Created: 29-MAY-1991 19:25        11718 topics        Updated: 15-MAR-1993 07:315  Topic  Author               Date         Repl  Title P --------------------------------------------------------------------------------W      1   LINAC::HUCK         29-MAY-1991     0  Welcome to the INFO-VAX List Conference ;      2   LINAC::HUCK         29-MAY-1991     0  MAILTONOTES 0      3                       29-MAY-1991     0  P      4   LINAC::MAILTONOTES  30-MAY-1991     1  CMU-TEK TCP/IP problems with LPRU      5   LINAC::MAILTONOTES  30-MAY-1991     6  RE: DECUS CDroms for non-US customers S      6   LINAC::MAILTONOTES  30-MAY-1991     1  Getting LAT service name - summary. @      7   LINAC::MAILTONOTES  30-MAY-1991     8  Re: talk for VMS:      8   LINAC::MAILTONOTES  30-MAY-1991     2  DECUS LUGs]      9   LINAC::MAILTONOTES  30-MAY-1991     0  Re: A problem with case, in argv[] with VAX C U     10   LINAC::INFO_VAX     30-MAY-1991     4  re: DISKQUOTA questions ... basic ...    BOO_> type notes.lis
 _To: nla0: BOO_> lo4   SYSGAERTNER  logged out at 15-MAR-1993 09:22:38.59  N ==============================================================================K That's perfectly what I remembered. This way neither deletes user's symbols 1 nor prevents my command-files to run as expected.   M -----------------------------------------------------------------------------   !                       M. Gaertner (                 TH Darmstadt, W. Germany& 	     Rechnergruppe FB 16-Maschinenbau9       SYSGAERTNER@CYGNUS.FRM.MASCHINENBAU.TH-DARMSTADT.DE %       Phone: Germany, (0)6151/16 5145   